Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Using custom URL for spaces

Thomas Krug
Contributor
July 4, 2011

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

5 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 6, 2011

@Andrew Ardill [CustomWare] Good point Andew. Now converted. Can I refer you to my question :)

How do you post a comment on an iPad?

0 votes
Andrew Ardill
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 6, 2011

David, your 'answers' aren't actually answers - perhaps you could convert them to comments on the question.

0 votes
Thomas Krug
Contributor
July 5, 2011

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?

0 votes
Thomas Krug
Contributor
July 5, 2011

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.

David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 5, 2011

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 :)

Thomas Krug
Contributor
July 5, 2011

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?

0 votes
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 5, 2011

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.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events