I've been working over 10 months on a legacy project (yes, in PHP, what a surprise!) that has database IDs hardcoded all over the codebase. Of course this makes problems like we can't maintain it w/o a production dump, no tests, etc. I already vomited over that.
Moving on, there is one particular case that I can't see how would I NOT hardcoded a dynamically generated content:
There is a screen with a form, and at the side a "help" button that is a link to the "company politics" regarding the info on that form.
Said politic is dynamically created, updated, Etc. by one of our departments, in a different module of our system.
I don't see a way of not-hardcoding the url /politics/12
on said button; and since there is probably a delete action in the politics module, a way to prevent it from break if deleted.
How are components (like said form) that depends on dynamically generated resources are designed?