? Success

User tests: Successful: Unsuccessful:

avatar bertmert
bertmert
3 Jul 2016

Summary of Changes

Added $this->baseurl to addStyleSheet.

Because of a thread in a german forum where this issue was reported some hours ago.
And because of consistency reasons.

Testing Instructions

I know that it's a very bad idea to deactivate Joomla SEF Plugin but it's allowed and possible.

Addition: Test with beez3 template, too.
Addition2: Test with protostar template in offline mode (maintenance mode), too. (Global Configuration > Site Offline: YES).

Create a file /templates/protostar/css/user.css
and enter some lines of CSS.

body div * {
 font-size: 36px !important;
}

Protostar will output an absolute href path for this file (created by SEF Plugin).

<link rel="stylesheet" href="/templates/protostar/css/user.css?3ad5..." />

Go to a subpage now.

E.g. in staging package with testing demo datas to
example.org/index.php/single-article
and see that CSS file is still loaded correctly.

Deactivate SEF-Plugin now in backend of Joomla.

Now Ptotostar will output the following LINK (RELATIVE path)

<link rel="stylesheet" href="templates/protostar/css/user.css?3ad5..." />

Go into source code of the page and click the link. You'll get an
Error: 404 Category not found

The browser cannot load the file correctly because is searching in
example.org/index.php/single-article/templates/protostar/css/user.css
instead of
example.org/templates/protostar/css/user.css

Apply patch and try again.

(Thx to Re:Later who asked me to create this PR).

avatar bertmert bertmert - open - 3 Jul 2016
avatar bertmert bertmert - change - 3 Jul 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jul 2016
Labels Added: ?
avatar bertmert bertmert - change - 3 Jul 2016
The description was changed
Labels Added: ?
avatar bertmert bertmert - change - 3 Jul 2016
The description was changed
avatar bertmert bertmert - change - 3 Jul 2016
Title
Add baseurl to user.css in Protostar template
Add baseurl to user.css in Protostar/Beez3 templates
avatar bertmert bertmert - change - 3 Jul 2016
Title
Add baseurl to user.css in Protostar template
Add baseurl to user.css in Protostar/Beez3 templates
avatar zero-24 zero-24 - test_item - 4 Jul 2016 - Tested successfully
avatar zero-24
zero-24 - comment - 4 Jul 2016

I have tested this item successfully on 95fe6db

Got it. I missed to test the sub site yesterday Thanks. ;)


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11010.

avatar zero-24 zero-24 - change - 4 Jul 2016
Category Front End Templates (site)
avatar zero-24 zero-24 - change - 4 Jul 2016
Easy No Yes
avatar andrepereiradasilva
andrepereiradasilva - comment - 4 Jul 2016
avatar joomla-cms-bot
joomla-cms-bot - comment - 4 Jul 2016

This PR has received new commits.

CC: @zero-24


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11010.

avatar andrepereiradasilva andrepereiradasilva - test_item - 4 Jul 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 4 Jul 2016

I have tested this item successfully on 1e9750e

code review


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11010.

avatar bertmert bertmert - change - 4 Jul 2016
The description was changed
avatar ggppdk ggppdk - test_item - 4 Jul 2016 - Tested successfully
avatar ggppdk
ggppdk - comment - 4 Jul 2016

I have tested this item successfully on 1e9750e

Tested and confirmed that the issue exists with SEF plugin OFF

On code review changes seem good,
but also tested all 3 changes, after applying patch, the URL of user.css file was correct in all 3


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11010.

avatar zero-24 zero-24 - change - 4 Jul 2016
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 4 Jul 2016

RTC as 3.6.0 gets delayed maybe @wilsonge can merge this for 3.6.0?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11010.

avatar joomla-cms-bot joomla-cms-bot - change - 4 Jul 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 4 Jul 2016
Labels Removed: ?
avatar brianteeman
brianteeman - comment - 4 Jul 2016

Rtc


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11010.

avatar joomla-cms-bot joomla-cms-bot - change - 4 Jul 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 8 Jul 2016
Milestone Added:
avatar roland-d roland-d - change - 16 Jul 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-07-16 08:59:27
Closed_By roland-d
avatar roland-d roland-d - close - 16 Jul 2016
avatar roland-d roland-d - merge - 16 Jul 2016
avatar joomla-cms-bot joomla-cms-bot - close - 16 Jul 2016
avatar joomla-cms-bot joomla-cms-bot - change - 16 Jul 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment