percussion / percussioncms

Percussion CMS - Content Management System
https://percussioncmshelp.intsof.com/percussioncms
Apache License 2.0
11 stars 9 forks source link

Preview URL's drop the bookmark / anchor from the Preview link #1250

Closed natechadwick closed 4 months ago

natechadwick commented 5 months ago

Describe the bug

If you have links in an HTML widget that include # tags to link to sections in a page, the preview url drops the anchor (#) from the preview link.

To Reproduce

Steps to reproduce the behavior:

  1. Create a page with multiuple paragraphs, adding a # anchor link to the title line for each paragraph.
  2. Add a new page and add an html widget to it. Add a list of links that link to each anchor on the test page.
  3. Preview the page with the HTML widget and click each link, notice that the anchor is not followed and is dropped from the Preview URL

Expected behavior Preview urls should not drop anchor links so that anchor links work in preview.

Versions Affected

natechadwick commented 5 months ago

In testing this, when canonical links are set to sections on the site navigation, the # seems to get added after the section name on the location re-write, but the anchor is also not followed.

rgarg24 commented 4 months ago

Hi Nate, We are not able to reproduce this issue. So, we can close this issue.