Link in the article is being overwritten automatically by the system
Asked by Andrew Ronson:

Hey guys,

I have a weird issue here, hopefully you would be able to assist me with it.

The problem is that when i put a certain link A into the article, and click Save - confluence displays link B instead. When i click Edit - i see link A in the edit mode, if i click Preview or Save - link B is being displayed. Also i if insert link A as an URL address into the text link - system displays link B and redirects me there.

This issue happens on all pages and spaces in my confluence so it looks like there is an auto-replacement of these links hard-coded in the system. Not sure how it happened though, thinking that there might have been a conflict of simultaneous editing which resulted in one change overwriting the other one permanently.

Please advise if this is a bug or if there is anything i can do to solve this issue.


Answers:
author: Mirek
body: Hi [@Andrew Ronson](/t5/user/viewprofilepage/user-id/1651342) - Welcome to Community! :)

Yes, indeed this looks really weird. Did you check if similar behavior is on a different browser? Is it same for all users? What would happen if you try from different network? What would happen if you would paste link B and try to edit/save?

comments: author: Andrew Ronson
body: Yup, i tried it in different browsers and the behavior is still the same. This issue occurs for all users and it does not seem to be network related. If i paste link B i am able to edit/save it without any problem, i mean it does not change to link A, it just works normally.


author: Mirek
body: Anything special with this link A? What is weird that all users have the same problem on all pages .. So it looks like something is cached across whole instance. Did you tried to rebuild your cache in Confluence?

<https://confluence.atlassian.com/confkb/how-to-rebuild-the-viewfile-cache-from-scratch-765756128.html>

<https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.html>


author: Andrew Ronson
body: I tried to flush cache using confluence administration page (and it did not work) but i did not consider rebuilding the cache the way you suggested. I will definitely try this as an option. Thanks for the advice!


author: Andrew Ronson
body: Hello Mirek,

I have tried to rebuild the cache as you advised in the post but unfortunately it did not help - the problem still persists. Any other advice you can possibly suggest?


author: Mirek
body: Hmm.. that is strange. OK lest try to find if there is any plugin that breaks that functionality. Could you please enable Safe Mode and see if that helped? - <https://confluence.atlassian.com/upm/disabling-and-enabling-add-ons-273875716.html>

In addition .. Do you see something in the logs when you actually save/edit the page (when the link A is actually changed to B)?


author: Andrew Ronson
body: Hello,

I have tried it in safe mode but it did not make any difference.

As for log info - please see it here <https://pastebin.com/E3u2vd4D> - hopefully you would be able to sort it out.


author: Mirek
body: Thanks! May I know what kind of link you are trying to post and to what it is changing? Is this a link to external resources or maybe internal? Is this a normal http/https? or maybe file:// protocol?


author: Andrew Ronson
body: Both links lead to internal resources inside our system. They are normal http/https links.

Interesting thing is that if i post just a resource name, e.g domain1.com it does not get replaced, but if it put <http://domain1.com> it is being replaced with <http://domain2.com>.


author: Andrew Ronson
body: ![halp-7901699\[1\].png](https://community.atlassian.com/t5/image/serverpage/image-id/28314i1AF617C7058016C7/image-size/large?v=v2&px=999 "halp-7901699[1].png")


author: Mirek
body: Hi [@Andrew Ronson](/t5/user/viewprofilepage/user-id/1651342) - Could you try to temporary disable auto formatting and auto converting ans see if there is any difference?

In order to do so go to your profile in Confluence (Profile \> Settings \> Editor)


author: Andrew Ronson
body: Hello,[@Mirek](/t5/user/viewprofilepage/user-id/781521) i have just tried that, it does not seem to be the case.


author: Mirek
body: OK, in that case please check your system plugins: **Confluence JIRA Plugin, Atlassian TinyMCE Plugin and Atlassian Editor Plugin.** If those are enabled and working then the last think that is in my mind is Customization. Are you having any? Maybe you can check one by one (or disable temporary as described here - <https://confluence.atlassian.com/confkb/how-to-clear-customizations-from-confluence-314447086.html>). Would be good to have a test system (which is a copy of production) on which you can also check if the same issue occurs and play around.

BTW - What is you version of Confluence?


Tags: developer

link

replace