On our Confluence server I have configured a shortcut link as follows:
Key: servicenow
Expanded Value: https://regionmidtjylland.service-now.com/sc_req_item.do?sys_id=%s
Default Alias: %s
When i insert an advanced link and type xyz@servicenow i get the linktext %s. I expected the text xyz.
The link works fine
What am I doing wrong?
The url you are giving it is sort of invalid. % is a control character, used to escape the following characters. %s is not a valid escaped character, so the browser dumps it out as %s.
To put it more simply, your url is incorrect, and can't do what you think you are trying to do because it uses control characters. Try a url without % in it.
The url works as intended. It is the linktext in Confluence that does not work.
It can't - the link is nonsense.
https://regionmidtjylland.service-now.com/sc_req_item.do?sys_id=%s is the template for the url.
by typing xyz@servicenow in the link textbox in an advanced link dialog, Confluence substitutes the %s with xyz. That is the basic idea of the shortcut link funktion. (see https://confluence.atlassian.com/doc/configuring-shortcut-links-135903.html)
My question is concerning the default alias. Contrary to the url, the default alias %s is not substituted with xyz. The documentation indicates that it should (see link above), but i cannot make it work.
It looks like you're new here. Sign in or register to get started.