Confluence server, add link to page and save makes link to open page in edit mode
Asked by Dmitry Mironov:

Hello.

Confluence server sits behind proxy.

First base_url was configured ti server ip address.

Then we changed base_url to domain address.

After this when inserting link to a page created before base_url change after saving open the link in page edit mode. Back in source page edit link edit is greyed out.

During insert the link shows as view page.

If after inserting such a link save the destination page - it opens in view mode.

As well if linking to hte page created after base_url change - everything works fine.


Answers:
author: Dmitry Mironov
body: Some more details:

Add link to page

![conf1.png](https://community.atlassian.com/t5/image/serverpage/image-id/13149iF8FFCB89F22BD769/image-size/large?v=v2&px=999 "conf1.png")

Check the added link is viewpage.action:

![conf2.png](https://community.atlassian.com/t5/image/serverpage/image-id/13151iB3EAFC38E61E2B24/image-size/large?v=v2&px=999 "conf2.png")

Update the page and check the link is createpage.action:

![conf3.png](https://community.atlassian.com/t5/image/serverpage/image-id/13152iFA3E3D4FB7F67DA5/image-size/large?v=v2&px=999 "conf3.png")

comments: author: AnnWorley
body: Those are good screenshots, I see what you mean. I opened a support request on your behalf so we can take a closer look. After we resolve it there we can post back to this thread to let the Community know the resolution.


author: Dmitry Mironov
body: [@AnnWorley](/t5/user/viewprofilepage/user-id/502040) thank you very much.

waiting for solution.


author: AnnWorley
body: Hi Dmitry,

It sounds like you are running into behavior related to these bugs: [Editing a page after changing the base URL causes all page links and @mentions to become links to the page itself](https://jira.atlassian.com/browse/CONFSERVER-52455) and [Images, attachments and user mentions in the page are broken after changing the BaseURL](https://jira.atlassian.com/browse/CONFSERVER-52060)

In both cases, the workaround is to disable and re-enable the Collaborative editing feature. This is less than ideal because:

1. The issue will stop occurring but you will need to go back and manually restore any pages that were affected.
2. All existing shared drafts are lost when you switch collaborative editing off, so make sure your users have published any work they want to keep before you make the change.

Please vote and/or comment on the bug reports to add weight to them. Here is our [Bug Fixing Policy](https://confluence.atlassian.com/doc/bug-fixing-policy-206865207.html) with more info on how we prioritize bug fixes

Thanks,

Ann

comments: author: Dmitry Mironov
body: [@AnnWorley](/t5/user/viewprofilepage/user-id/502040) thanks for reply and options to check.

Unfortunately these links does not solve the issue I have.


author: AnnWorley
body: Hi Dmitry,

I realize the descriptions on the bug reports don't mention the attachment view link URL being changed to an edit URL, but they are close enough to the symptoms and situation (attachment links are not behaving as expected after base URL change) to be fixed by the same workaround.

Did you turn collaborative editing off and back on and still see the issue? If you toggled collaborative editing mode and are still seeing the issue, please let me know and I will research more.

If you haven't tried the workaround because of the shared drafts, perhaps you can reproduce the issue in a test instance, and try the workaround there, to save your users some trouble.

Thanks,

Ann


author: Dmitry Mironov
body: [@AnnWorley](/t5/user/viewprofilepage/user-id/502040) I followed the workaround instructions but this did not help.