重定向并保持我的favicon [英] Redirect and keep my favicon
问题描述
我想知道当Facebook点击Facebook上的链接时,Facebook重定向如何保持其favicon其FB图标的开放新标签
I was wondering how facebook redirects keeps its favicon when you click a link on facebook its open new tab with the FB favicon
我想知道如何才能实现
它不是iframe,所以我该怎么做这样的事情
Its not iframe so how could i do such thing
我应该从哪里开始?
当重定向有一个URL叫做可能它做的一切
Where I should start ? And while the redirect there is a URL called maybe it does everything
关心
推荐答案
您是否使用Google Chrome。我很确定你是指已知的错误。
请参阅此bug ,将其合并到此错误。
Are you using Google Chrome. I'm pretty sure you are referring to a known bug. See this bug which was merged into this bug.
有哪些步骤可以重现问题?
- favicon.ico(例如facebook.com)
- 收到一个重定向,从这个域到一个新的域,没有/favicon.ico
- 新的网址继承自最后一个域。
预期结果是什么?
图标为空。
会发生什么?
Favicon从最后一个域继承。
Favicon is inherited from last domain.
其他信息
我发现这是因为facebook.com不直接链接到外部
网站,而是记录url th en重定向到它。我使用ruby web框架
'Sinatra'中的'redirect'语句转载本地主机上的
。
I discovered this as facebook.com does not link directly to external sites, but logs the url then redirects to it. I reproduced the issue on localhost using the 'redirect' statement in the ruby web-framework 'Sinatra'.
这篇关于重定向并保持我的favicon的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!