? Success
Related to # 5081

User tests: Successful: Unsuccessful:

avatar waveywhite
waveywhite
11 Nov 2014

Fix issue #5081 by making template script and css links absolute rather than relative.

avatar waveywhite waveywhite - open - 11 Nov 2014
avatar jissues-bot jissues-bot - change - 11 Nov 2014
Labels Added: ?
avatar brianteeman brianteeman - change - 11 Nov 2014
Rel_Number 5081
Relation Type Related to
avatar Bakual
Bakual - comment - 11 Nov 2014

Copy from Issue:


In index.php for the protostar template the css and javascript links are relative. With SEF & .htaccess enabled this causes the template to attempt to load these files relative to the current path. These paths map to the component and Joomla tries to map them to a page and outputs HTML instead of the desired CSS file.

To recreate this bug:
Create a new Joomla install with Protostar as default template and no content
1. Enable SEF links via the global settings & copy htaccess.txt to .htaccess in web root
2. Create a new article in the admin site (id should be 1)
3. Manually enter the article name via the url siteurl/component/content/article/1


Please note that the SEF plugin has to be disabled to reproduce this.

avatar infograf768
infograf768 - comment - 21 Nov 2014

looks fine to me.

avatar Bakual
Bakual - comment - 21 Nov 2014

Merged, thanks!

avatar Bakual Bakual - close - 21 Nov 2014
avatar Bakual Bakual - change - 21 Nov 2014
The description was changed
Title
Update index.php
Protostar template doesn't work with component links in SEF
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-11-21 19:58:18

Add a Comment

Login with GitHub to post a comment