I need to overwrite the classic confluence URL-Schema of /display/<spacekey>/<page> which is shown to the user due to generated spacekey's which are not really user friendly.
I already developed a plugin using PathConverter module which helps calling the spaces with user friendly URLs, but after navigating to the Homepage all links are shown to the user with the normal schema.
Is it somehow possible to modify the link confluence show's to the user? Something like an alias to the spacekey would be perfect.
Cheers
Thomas
Community moderators have prevented the ability to post new answers.
@Andrew Ardill [CustomWare] Good point Andew. Now converted. Can I refer you to my question :)
David, your 'answers' aren't actually answers - perhaps you could convert them to comments on the question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The mapping is done by the PathConverter plugin using a textfile.
Would the ServletFilter module only do the redirect or would link in such a space actually be friendly?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's a bit easier. One generated space key would be 'a774bh8', eg.
/display/a774bh8/Home
when calling the URL
/display/friendly/Home
the 'friendly' part get's converted to the first URL by the plugin. So far so good.
If the user has successfully navigated to the home page all subsequent URLs would be /display/a774bh8/<page name> again which is what I do not want.
As stated I need something like an url alias to the space key which I can change much easier than the space key itself (sorry, missed this part in the original post).
I hope it got a bit clearer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK, so where is the friendly to a774bh8 spaceKey mapping coming from?
I'm edging towards a ServletFilter module that would redirect /display/a774bh8/Home to /display/friendly/Home -- making sure you don't get stuck in a loop :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The mapping is done by the PathConverter plugin using a textfile.
Would the ServletFilter module only do the redirect or would link in such a space actually be friendly?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you show some examples of the new URLs that you've produced?
e.g.
/display/XYZ/My+Page
is converted to...
/foo/xyz/parent-page-title/my-page.html
...or something similar. Maybe that would help others answering the question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.