You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coderedcms includes a feature which uses js to go through all anchor tags and set target="_blank" if they point to an external address.
There is some flaw in this logic that causes this to always be true if the site cr_site_url is incorrect
ex. You have a link to '/shop/' hard coded in an anchor tags, with site url being set to www.example.com, but hosted locally at localhost:8000. This should open in the same tab, but is opened in a new tab instead.
Steps to reproduce
Steps to reproduce the behavior:
Create a new coderedcms site.
Turn on "Open all external links in a new tab" under general settings.
Create an internal link on a page (ex. "/shop/")
Click on the link.
See link open in new tab.
Expected behavior
The link should open in the same tab due to starting with a "/"
The text was updated successfully, but these errors were encountered:
Describe the bug
Coderedcms includes a feature which uses js to go through all anchor tags and set target="_blank" if they point to an external address.
There is some flaw in this logic that causes this to always be true if the site cr_site_url is incorrect
ex. You have a link to '/shop/' hard coded in an anchor tags, with site url being set to www.example.com, but hosted locally at localhost:8000. This should open in the same tab, but is opened in a new tab instead.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
The link should open in the same tab due to starting with a "/"
The text was updated successfully, but these errors were encountered: