Can't create a Browse Shortcut with a CQL (advanced) search

Trying to add this URL as a browse shortcut:"*"+and+space+%3D+"ATD"+and+type+%3D+"page"+and+label+%3D+"serviceprogram"&queryString=

That link works fine in a browser. Two problems when trying to turn this into a Browse Shortcut (in my case, trying to create a shortcut named asi-sp):

1) The Browse Shortcut config page says invalid URL. That's because of the quotes. I changed them to single quotes and it still works in the browser, and viola! Browse Shortcut created. 

2) When using the shortcut (ex: [email@asi-sp] things go OK, but when you click on the clink, total barf (404). Here is the resulting URL:*%2527%2Band%2Btype%2B%253D%2B%2527page%2527%2Band%2Blabel%2B%253D%2B%2527serviceprogram%2527&q=email

As you can see, the quotes, plus symbols, percent signs are getting escaped by Confluence.

If I manually edit the URL back to what it is supposed to be:'*'+and+type+%3D+'page'+and+label+%3D+'serviceprogram'&q=email

It works great.






1 answer

0 votes

Hi Sean,

Wasn't able to replicate this specifically, even if I send the URL to myself in email it opens properly. The broken link for me wasn't throwing a 404 but telling me there was an issue with my search query.

However, I don't think it's Confluence re-writing the URL, it appears to be related to the email client or browser. This is because it's using reserved symbols in the URL and it automatically corrects it.

What if you were to use a URL shortener, such as tinyurl and send the link to search results that way? Does it work for you?

Kind Regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 8 hours ago in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

86 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you