How to show a block on specific pages using the Node ID instead of an URL?
If you just want use the node id you can use node/[id].
Example: node/1

It will works even you are using a path alias, because that route is allways avaiable for any node.