
Megan Perry-Thibault (Customer) asked a question.
We have upgraded both of our development servers (test.website.com and edit.website.com respectively) from 14.4 to 15.4 and are running into a really weird two prong issue.
1) Our content authors have found that some document links are being generated incorrectly on the frontend side of the pages.
- In the content blocks/lists/etc, the links are fully relative"/docs-sf/provider/library/document.pdf?sfvrsn=123_abc" on the backend, but the front end they are generating as "https://server.website.com/?sfvrsn=123_abc". So completely eliminating the document's actual URL and resulting in the links going to the homepage.
- I thought maybe just editing the content itself to use the full urls ("https://server.website.com/docs-sf/provider/library/document.pdf?sfvrsn=123_abc") would fix the issue, BUT this led me to find issue #2.
2) I have found that the links are being re-written back to the relative version no matter what I change them to.
- I have rewritten these links using relative, full, or links to the documents directly on our production server (so https://website.com/docs-sf/provider/library/document.pdf rather than https://test.website.com/docs-sf/provider/library/document.pdf?sfvrsn=123_abc) the dev servers (test and edit) keep reverting the link back to the relative version. I've tried rewriting it directly in the HTML view and using SF's wysiwyg link tool, but both do the same thing.
- test is on 15.4.8621 so I patched edit to 15.4.622 but the issue still occurs.
- It is not the content just refusing to save changes as I have erased the links entirely, saved and published the content and it reflects the erasure as it should. Then I add it back fresh and it goes right back to the relative and generating incorrectly on the front end.
- So far it seems to only be pdfs but it is not all pdfs and it seems like it is altering only the 1st document link in the block/list/etc, as there are several places where three documents in the same exact folder are linked but it is only the first one that is going screwy. BUT this is not consistent across all pages/content. It seems to be entirely random as to which pages have the issue.
The settings between all three servers should be that same aside from the CSPs as we cloned our production DB onto test and edit a few days before we ran the upgrades. So I am not sure why this is occurring. Any help/insight would be greatly appreciated. Thank you!
UPDATE:
While the issue itself is still present, we have discovered a work around.
Per https://www.progress.com/documentation/sitefinity-cms/create-and-manage-links, with version 15.4.8622 and up there is an attribute you can add to anchor tags that will prevent it from appending the sfref information (data-skip-sfref="true").
We have found adding that attribute to the broken links makes them render correctly.
@Ian MacDonald (Customer) - This may help ya'll not have to go through the effort of creating short links to work around the issue. It seems to be working well for us thus far.