? J4 Issue ? ? Success

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
22 Aug 2017

Pull Request for Issue #17629 .

Summary of Changes

This PR changes the lookup order for the favicon so it first looks in the root folder and afterwards in the template one.
Currently, the lookup works the other way (first template, then root).

I think the current way has historic reasons because (I think) we used to ship a favicon.ico in root in earlier versions. The favicon in the template folder then allowed to override that favicon.

Today we don't ship a favicon in root, but we ship one in the template folders, thus it imho makes more sense to reverse the override place.

Testing Instructions

  • Put different favicon.ico files into the root folder and the active template folder.
  • Check which favicon is used

Expected result

The one from root is used, overriding the one from the template

Actual result

The one from the template is used, overriding the one from root.

Documentation Changes Required

Don't know if that hehavior is documented somewhere. If yes, it should be adjusted.
Also it should be documented as a changed behaviour between 3.x and 4.0.

avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2017
Category Libraries
avatar Bakual Bakual - open - 22 Aug 2017
avatar Bakual Bakual - change - 22 Aug 2017
Status New Pending
avatar brianteeman
brianteeman - comment - 22 Aug 2017

This needs documenting - not just as a change but as a feature - otherwise there is no point in the pr ;)

avatar dgrammatiko
dgrammatiko - comment - 22 Aug 2017

The one from the template is used, overriding the one from root.

@Bakual I thought that templates are always the parts that make the final decision, e.g. js is overridden if there is file in template/js. So if we do this here then we have inconsistent behaviour, (unless I got this wrong)

EDIT: Ignore the above comment, this now aligns the behaviours

avatar Bakual Bakual - change - 22 Aug 2017
Title
Change the lookup order for the favicon.ico
[4.0] Change the lookup order for the favicon.ico
avatar Bakual Bakual - edited - 22 Aug 2017
avatar mbabker
mbabker - comment - 22 Aug 2017

Generally, you're right. But, the favicon is an awkward thing. If a template is shipping one, how do you override it at the template level? The entire problem we're having is users are building templates either from core or from a template provider who ships a favicon as part of the template, meaning it'll be overwritten on update unless it's excluded from updates. So how do you local override a template file?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Aug 2017

@Bakual can you please resolve conflicting Files for test?

avatar Bakual Bakual - change - 23 Aug 2017
Labels Added: ?
avatar Bakual
Bakual - comment - 23 Aug 2017

Rebased PR, should be fine for testing again.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 23 Aug 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Aug 2017

I have tested this item successfully on 9580794


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

avatar kofaysi
kofaysi - comment - 14 Oct 2017

Thank you for considering the issue serious enough for a discussion.

I like to use of the user.ico file over the suggested root dir vs template dir location check. The reason for my preference is the following: On one standard site, two templates are being used -- one for the frontend (in protostar) and one for the administrator (backend, in isis). With the OP's original suggestion, two locations for two different favicon files are degraded to a single location (and single favicon). I'm using two favicons (both differing from the default Joomla favicon).

Note: The favicon for the backend is a visual negative of the frontend favicon.

Thank you for considering a different method and refraining from overwritting user favicons in the frontend template and backend template as well.

avatar Bakual
Bakual - comment - 4 Dec 2017

@kofaysi Backend of course would use a different favicon from the frontend anyway, since the "root" directories are different in that case. "Root" is a bit misleading since technicalls it's the "Base" directory.

avatar Bakual Bakual - change - 8 Jan 2018
Labels Added: ?
avatar Bakual
Bakual - comment - 8 Jan 2018

Rebased this PR

avatar sanderpotjer
sanderpotjer - comment - 5 May 2019

I have tested this item successfully on f3ca2a5


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

avatar sanderpotjer sanderpotjer - test_item - 5 May 2019 - Tested successfully
avatar sanderpotjer
sanderpotjer - comment - 5 May 2019

@franz-wohlkoenig maybe you can test this PR again after the latest rebase to get it merged

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 May 2019

@sanderpotjer i'm waiting for further on beta as there upgrades from nightly to nightly are possible.

avatar alikon
alikon - comment - 6 May 2019

I have tested this item successfully on f3ca2a5


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

avatar alikon alikon - test_item - 6 May 2019 - Tested successfully
avatar alikon alikon - change - 6 May 2019
Status Pending Ready to Commit
Labels Added: ?
Removed: ?
avatar alikon
alikon - comment - 6 May 2019

RTC


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

avatar alikon
alikon - comment - 6 May 2019

RTC


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

avatar SniperSister SniperSister - change - 6 May 2019
Labels
avatar roland-d roland-d - change - 19 May 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-05-19 07:23:36
Closed_By roland-d
Labels Added: ?
avatar roland-d roland-d - close - 19 May 2019
avatar roland-d roland-d - merge - 19 May 2019
avatar roland-d
roland-d - comment - 19 May 2019

Thank you.

Add a Comment

Login with GitHub to post a comment