I see.
Then you are running in the same limitation as many of us that local variables can not be part of vanilla URL. Imo you have to options.
Option 1:
Use function-backed column with your static local variable as input and strconcat your desired URL. Note: imo there is no way to display/value format the resulting string as hyperlink. Either the users need to right click → copy-Pasta the url value. Or see here one workaround proposed by using a custom Right-click on a table action.
https://community.palantir.com/t/can-i-add-a-url-column-in-a-workshop-table-that-shows-the-url-stored-in-a-linked-object/1168/3
Option 2:
As described above from jakehop, use a looped layout to display each object. Within that you can apply my proposed way to richformat the URL in a markdown widget.