WebCMS Posted October 7, 2023 Posted October 7, 2023 If I enter a link to my site like "/" or "/forum" or "/clubs" or "/blogs" or "/articles", it don't resolve to the site's links but to http://<entered string>. When clicked on: / should resolve to the home page (site.com). /forum should resolve to site.com/forum /clubs should resolve to site.com/clubs and so on... This is the expected behavior with any HTML editor.
teraßyte Posted October 7, 2023 Posted October 7, 2023 When you enter a link in the editor it automatically gets the protocol added at the start. This is how the content looks if you click the Source button in the editor to see the HTML: <p> comment with a link: <a href="https://domain.com/blogs/" rel="">https://domain.com/blogs/</a> </p> <p> Relative link with a period: <a href="https://./blogs/" rel="">/blogs/</a> </p> <p> And a relative link with no period: <a href="https://blogs/" rel="">/blogs/</a> </p> If you want the relative links to work you need to manually edit the HTML by removing the protocol: <p> comment with a link: <a href="https://domain.com/blogs/" rel="">https://domain.com/blogs/</a> </p> <p> Relative link with a period: <a href="./blogs/" rel="">/blogs/</a> </p> <p> And a relative link with no period: <a href="/blogs/" rel="">/blogs/</a> </p> The link with the period uses the current URL you're on as base, the one without uses only the domain. WebCMS 1
WebCMS Posted October 8, 2023 Author Posted October 8, 2023 I don't see a way to edit the source HTML in the editor as there is no toolbar icon to switch to source. Also looked at Editor Config page and no option to add Source button. Please advise...
All Astronauts Posted October 8, 2023 Posted October 8, 2023 Member Group permission to post HTML. Strongly suggest limiting that feature to admins only. WebCMS and teraßyte 2
Recommended Posts