Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Link replaced on publish with # symbol

Artem Mozgovoi April 20, 2021

3 answers

1 accepted

1 vote
Answer accepted
Brant Schroeder
Community Champion
April 22, 2021

@Artem Mozgovoi   Welcome to the community.   The link you are adding has characters that are not allowed so Confluence removes them and provides the # link.  I believe this is to prevent cross site scripting.

Artem Mozgovoi April 22, 2021

Can you advice some workaround maybe for this case? Is it possible to have link with special characters?

1 vote
Brant Schroeder
Community Champion
April 22, 2021

@Diego I also tested the link and it was fine until I published as well.  Once published the link reverts to # which is the same behavior I have seen if you try to input JavaScript.  I believe that your application is trying to prevent cross site scripting and this link does not work because of how it is formed.

Artem Mozgovoi April 23, 2021

is there some known workarounds for that?

Brant Schroeder
Community Champion
April 23, 2021

@Artem Mozgovoi None that I know of or Atlassian would have a security vulnerability.  I guess you could create a bitly link and use that instead.

Like Artem Mozgovoi likes this
1 vote
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2021

Hello there @Artem Mozgovoi!

Interesting behavior! I tried to place the link you provided in my site and it works as expected. I used it "raw", with no display text and also with display text:

Edit mode

Screen Shot 2021-04-22 at 12.32.10.png

View mode

Screen Shot 2021-04-22 at 12.32.18.png

 

With this in mind, I would like to ask you a few questions:

  1. How do you insert the link?
  2. Does this happen with other links as well?
  3. Would it be possible for you to take screenshots of the result in both edit and view modes of your page?

Let us hear from you!

Artem Mozgovoi April 22, 2021

Hey Diego, thank you for answering. Have you tried to click on that new link? It also displayed as correct link for me but it navigates on /# route as confluence replaced it on publish

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events