Display Confluence TinyURL in browser address bar.

Dirk Brutscher
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.
October 13, 2015

Is there a way to always display the tinyurl in the address bar of the browser and not the non-permanent "nice url"? Please no simple "no", if not out of the box possible (developer/admin answer expected) smile

4 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Stephen Deutsch
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.
October 13, 2015

Although it is "technically" not possible, you could of course use a crazy hack instead. I haven't tried this in a production instance, but you could try it. You would need to add the following to the custom HTML:

<script> AJS.toInit(function() { if (AJS.params.browsePageTreeMode === "view" && history.replaceState) { history.replaceState(null, null, jQuery('link[rel="shortlink"]').attr('href')); } }); </script>

This only works in IE10 and above.

0 votes
Dirk Brutscher
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.
October 14, 2015

Hi,

@Stephen Deutsch: Nice approach, in a first test it worked in all current browsers. Update: As long no content tries to make a postback which is not possible to this kind of urls smile

@Rodrigo Girardi: Ok thanks, I added a comment.

0 votes
Rodrigo Girardi Adami
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 13, 2015

Hi Dirk,

As everyone stated, there is no way to accomplish that by design of the application.

I've created this feature request for you: https://jira.atlassian.com/browse/CONF-39561

I recommend to comment there requesting this functionality and vote to increase the priority and the chance to be implemented in the future.

I hope this helps!

Cheers,

Rodrigo

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 13, 2015

No.

Confluence always tries to use the human friendly title.  If it can't because of funny characters it doesn't support in urls, it will use the page-id.  There's no option to use the tiny urls.

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