Announcement Announcement Module
No announcement yet.
Controller to know mapped URL? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Controller to know mapped URL?

    Hello everyone,

    is it possible for a controller to know the URL it is mapped to? I know that this is something a controller normally should not know, but there are cases that require the controller to know.

    For example: Links or form actions linking back to the controller, which is quite common for form controllers. I know of the existance of relative URL's, but sometimes forms are just included fragments - in this case a relative URL would link to the resource that includes the form - not the form (controller) itself.

    I'm also aware that the controller can be mapped to multiple URLs, so the reverse-mapping may not be unique.