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

Sean Smith September 29, 2017

Trying to add this URL as a browse shortcut:

https://company.atlassian.net/wiki/dosearchsite.action?cql=siteSearch+~+"*"+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:

https://auctionedge.atlassian.net/wiki/dosearchsite.action?cql=siteSearch%2B~%2B%2527*%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:

https://auctionedge.atlassian.net/wiki/dosearchsite.action?cql=siteSearch+~+'*'+and+type+%3D+'page'+and+label+%3D+'serviceprogram'&q=email

It works great.

 

 

 

 

 

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 3, 2017

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,
Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events