Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add favicon for IE8-10 #18039

Merged
merged 2 commits into from
Nov 6, 2015
Merged

Add favicon for IE8-10 #18039

merged 2 commits into from
Nov 6, 2015

Conversation

MorrisJobke
Copy link
Contributor

cc @jancborchardt

Fixes #18012

This doesn't work yet and needs further refinement. This is my current state of the fix.

@MorrisJobke MorrisJobke added this to the 8.2-current milestone Aug 3, 2015
@scrutinizer-notifier
Copy link

A new inspection was created.

@MorrisJobke MorrisJobke changed the title Add favicon for IE up to version 10 [WIP] Add favicon for IE up to version 10 Aug 3, 2015
@jancborchardt
Copy link
Member

@CaptionF please review if this fixes your issue.

@MorrisJobke
Copy link
Contributor Author

@jancborchardt please read my comments. This is not yet finished and therefore also marked as wip

@MorrisJobke
Copy link
Contributor Author

@jancborchardt For favicon support in IE we need to generate ico files. For older IEs (8, 9) we also need to place them in the root of the URL (https://my.domain.com/favicon.ico - could be done via rewrite rule if owncloud is in a subfolder) - for higher version it can also be placed in a subdirectory (https://my.domain.com/owncloud/favicon.ico is valid).

@MTRichards Is this worth the effort?

@jancborchardt
Copy link
Member

@MTRichards @DeepDiver1975 statement please if this is worth the effort.

@MTRichards
Copy link
Contributor

Yes please, because it is IE up to 10.

@MorrisJobke
Copy link
Contributor Author

Yes please, because it is IE up to 10.

Okay. So this PR already solves it for IE10. For IE8 & 9 it will only work if owncloud is installed in the root and not a subdirectory and we add some rewrite rules. 🙈

@DeepDiver1975
Copy link
Member

@MorrisJobke let's move this one in - fixes at least some case.

@DeepDiver1975
Copy link
Member

@rperezb we need qa power on this - thx

@MorrisJobke
Copy link
Contributor Author

I just downloaded the IE10 image to test if it even fixes it in IE10

@MorrisJobke
Copy link
Contributor Author

I tested the latest changes and they now work with IE10

I will try to get it working in IE9 ...but I think this is harder.

@MorrisJobke MorrisJobke force-pushed the favicon-up-to-ie10 branch 2 times, most recently from b623ebc to e6174f9 Compare October 8, 2015 22:02
@MorrisJobke
Copy link
Contributor Author

I need to choose an ico file to support IE9 and IE10. PNG support started with IE11: https://en.wikipedia.org/wiki/Favicon#How_to_use

I tested this and it works in IE8, IE9 and IE10 too now.

Also work in other browsers - Firefox: (left old version, right, new version)

bildschirmfoto von 2015-10-08 23-58-13

@DeepDiver1975 Ready for review now.

@MorrisJobke MorrisJobke changed the title [WIP] Add favicon for IE up to version 10 Add favicon for IE8-10 Oct 8, 2015
@MorrisJobke
Copy link
Contributor Author

I also updated the example theme favicon.

@MorrisJobke
Copy link
Contributor Author

@LukasReschke @nickvergessen @CaptionF Please test

@PVince81
Copy link
Contributor

Moving to 9.0 to match the ticket

@PVince81 PVince81 modified the milestones: 9.0-next, 8.2-current Oct 13, 2015
@davitol
Copy link
Contributor

davitol commented Oct 13, 2015

@MorrisJobke 👎 It doesn't work for me. 😿

logs:

{"reqId":"K9nO0WLyPgk+SP84WiDs","remoteAddr":"82.159.139.58","app":"core","message":"Exception: {"Exception":"RuntimeException","Message":"image not found: image:favicon.ico webroot: serverroot:\/opt\/owncloud","Code":0,"Trace":"#0 \/opt\/owncloud\/lib\/private\/helper.php(174): OC\URLGenerator->imagePath('', 'favicon.ico')\n#1 \/opt\/owncloud\/lib\/private\/template\/functions.php(169): OC_Helper::imagePath('', 'favicon.ico')\n#2 \/opt\/owncloud\/core\/templates\/layout.guest.php(15): image_path('', 'favicon.ico')\n#3 \/opt\/owncloud\/lib\/private\/template\/base.php(160): include('\/opt\/owncloud\/c...')\n#4 \/opt\/owncloud\/lib\/private\/template\/base.php(138): OC\Template\Base->load('\/opt\/owncloud\/c...')\n#5 \/opt\/owncloud\/lib\/private\/template.php(211): OC\Template\Base->fetchPage()\n#6 \/opt\/owncloud\/lib\/private\/template.php(233): OC_Template->fetchPage()\n#7 \/opt\/owncloud\/lib\/private\/template\/base.php(121): OC_Template->fetchPage()\n#8 \/opt\/owncloud\/lib\/private\/template.php(338): OC\Template\Base->printPage()\n#9 \/opt\/owncloud\/index.php(55): OC_Template::printExceptionErrorPage(Object(RuntimeException))\n#10 {main}","File":"\/opt\/owncloud\/lib\/private\/urlgenerator.php","Line":189}","level":3,"time":"2015-10-13T08:59:30+00:00"}

@MorrisJobke
Copy link
Contributor Author

@MorrisJobke It doesn't work for me.

Which browser? Which OS?

@davitol
Copy link
Contributor

davitol commented Oct 13, 2015

@MorrisJobke IE9, WIn XP (64-bits) ; sorry about not writing the info in the previous comment

@MorrisJobke
Copy link
Contributor Author

@MorrisJobke IE9, WIn XP (64-bits) ; sorry about not writing the info in the previous comment

Can you check that you use the correct commit 457b43f ? I rebased recently, maybe you are on an old version 🙈

@PVince81
Copy link
Contributor

@davitol any update ?

@davitol
Copy link
Contributor

davitol commented Oct 20, 2015

Can you check that you use the correct commit 457b43f

@PVince81 @MorrisJobke I have retested and it doesn't work for me. Same error as said before

@MorrisJobke
Copy link
Contributor Author

@PVince81 @MorrisJobke I have retested and it doesn't work for me. Same error as said before

I don't get it. I just rebased this again. Maybe we can debug this together at your machine via screensharing? I would like to get this in. Just ping me once you have time @davitol

@davitol
Copy link
Contributor

davitol commented Nov 4, 2015

👍 Now it WFM @MorrisJobke

screen shot 2015-11-04 at 10 29 37

@MorrisJobke
Copy link
Contributor Author

@PVince81 Mind to give this a short test?

@PVince81
Copy link
Contributor

PVince81 commented Nov 6, 2015

Tested IE8, IE9, IE10, IE11, Firefox and Chrome, combined with login page, public link and regular page => favicon works 👍

DeepDiver1975 added a commit that referenced this pull request Nov 6, 2015
@DeepDiver1975 DeepDiver1975 merged commit 164f4d7 into master Nov 6, 2015
@DeepDiver1975 DeepDiver1975 deleted the favicon-up-to-ie10 branch November 6, 2015 13:51
@mmccarn
Copy link
Contributor

mmccarn commented Apr 3, 2016

The favicon.ico patch seems not to work with a custom theme:
favicon.ico from custom theme is not applied #23758

@lock
Copy link

lock bot commented Aug 6, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Favicon in IE9 not presented
8 participants