Permalink trailing forward slash
3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 30, 2018 (RSS)
By gversion - May 28, 2018
Hello,
I have noticed that if I include a trailing forward slash on my permalink URLs then the links to the CSS and JS all break and so the page does not render correctly.
Could someone please tell me if there is a way I can resolve this? Perhaps some code for the .htaccess file?
Regards,
Greg
By leo - May 30, 2018
Hi Greg,
What code did you use to include the styles and javascript files? And also please provide the html output of the code and let me know if the path exists on the server.
To check the html output:
1. Depending on the browser: Right click on the page empty area and click "inspect"
2. Find the <head> html tag and open, the lines and source paths of stylesheets and javascripts will be in the tag somewhere
3. Copy the paths and try go to the links, see if the browser shows the file or not found error
Thanks,
interactivetools.com
By gversion - May 30, 2018
HI Leo,
Thanks for the help! I just needed to add a forward slash to the start of the CSS files that I was referencing in the header file.
Regards,
Greg