URL generation in my web app is in charge of the presentation layer. Now consider another module sending out messages containing URLs. (Not neccessarily triggered from presentation). However, the presentation layer has to know about the module (since it might be the trigger, and the user can configure the module using the frontend).
I.e. the modules are dependent of each other... any ideas how this cyclic dependency could be avoided?
Storing URLs in my database does not seem right to me, same goes for merging the two modules.
Any help or inspiration is be very much appreciated. Thx.