Vincent, did you had a chance to look at this ? Instead of if (type.equals("bin") || type.equals(this.configuration.getWikiPathPrefix())) { Should the addition of an empty condition like that sufficient ? : if (type.equals("bin") || this.configuration.getWikiPathPrefix().isEmpty() || type.equals(this.configuration.getWikiPathPrefix())) { Thanks ! -- Chris
2) Empty servlet path support
The second thing I am struggling with is shortening the urls. I am following this guide:
http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs But no matter what I try, I cannot make it work without the '/bin/ prefix. Please note that the xwiki is running under Jetty as the main context (mapped as '/') so the url I have is: server.com/WebHome which according to the short urls document should work.
it appears that the issue comes from StandardXWikiURLFactory: -------------------- String type = extendedURL.getSegments().get(0); if (type.equals("bin") || type.equals(this.configuration.getWikiPathPrefix())) { xwikiURL = this.entityURLFactory.createURL(extendedURL, parameters); } else { throw new UnsupportedURLException(String.format("URL type [%s] are not yet supported!", type)); } ----------------
What version of XWiki are you using? I think some changes have been made to the URL "parsing" code in 5.1. Vincent, WDYT? I am using XWiki Enterprise 5.1
Thanks, Marius