Need feature to remove context path from reverse routing generated Urls
Bug #569116 reported by
paul.lemon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
play framework |
New
|
Undecided
|
Unassigned |
Bug Description
I am deploying my applciation to a servlet container
Due to an unusual hosting situation the servlet is being deployed within a context folder e.g. "/play-application"
The URL's of the website should not contain this context path, a url rewrite filter is being used to map incoming requests to the context
e.g a request of /products is mapped to /play-applicati
However the reverse routing is generating Urls with the context path included - this is not a bug but I needed to be able to configure the framework so that it did not add this.
I would like a feature to be able to configure the application so that the reverse routing does not include the context path.
To post a comment you must log in.
I have made an amend to achieve this - its a very simple update which allows the configuration of a string which will be stripped off the beginning of any reverse routing generated URL
e.g,
contextPathToRemove = /play-application
I will attach the bzr diff output of the code changes I made