Hello,
I want xwiki url to give same output with or without trailing slashes(/) at the end of url. Is there a way I can configure this in XWiki?
Thank you!
Hello,
I want xwiki url to give same output with or without trailing slashes(/) at the end of url. Is there a way I can configure this in XWiki?
Thank you!
I guess this is caused by the problem in your other post, where the apache httpd redirects all requests looking like they point to a directory (i.e. not ending with a .suffix
) to an URL that ends with a slash.
The problem is here that for XWiki the two URLs are different:
/XWiki/XWikiPreferences
shows the page XWiki.XWikiPreferences
/XWiki/XWikiPreferences/
shows the page XWiki.XWikiPreferences.WebHome
i.e. a trailing slash is for XWiki the signal to append and implicit WebHome
to the URL.
I tries to solve your problem by creating a new page as XWiki.XWikiPreferences.WebHome
which only contains a macro to include the XWiki.XWikiPreferences
, however this did not work as I hoped it would.
I wonder if you can use some rewrite rules instead, that internally rewrite the URL /XWiki/XWikiPreferences/
to /XWiki/XWikiPreferences
, hopefully bypassing the other option that stubbornly adds slashes …
hello,
Solved the issue!!
thank you!!