Title | Switching between using and not using base url breaks links |
Date | 13-Aug-2005 16:41:36 EEST |
Version | 2.2.28 |
Submitter | ErikAlm |
Bug criticality | ClosedBug |
Browser version | Firefox 1.0.6 |
Bug status | ClosedBug |
PageProvider used | VersioningFileProvider |
Servlet Container | Tomcat 5.5.9 |
Operating System | Linux 2.6.8.1-12mdk |
URL | |
Java version | 1.5.0_03 |
If you are using a baseUrl and then decide not to, the wiki will break by showing page urls like:
http://localhost:8080/cwiki/nullTDIAIt appears the wiki/ part of the url has been replaced by null (the correct url should read: http://localhost

The only viable workaround is to use baseUrl again (for instance, in this case set to http://localhost:8080/cwiki/), however, since the bug appears, something is wrong and might, unchecked, have larger consequences!
You must not use the ShortURLConstructors if you have not set the BaseURL. BaseURL is practically mandatory - use jspwiki.referenceStyle = relative, if you want to have relative URLs. However, a null should not appear, though.
Sort of fixed in 2.2.32.
Add new attachment
Only authorized users are allowed to upload new attachments.