How to get current recordId from the url

Does it works with “open modal” features from a list details block ? Thanks
UPDATE : works well :white_check_mark: