Views lets you configure the default value for a contextual argument.
We often might use the content id from url, for example.
This will work automatically if the block is placed on a node page that is intended to be the contextual argument.
Articles
Change records