How to get favicon.ico from _canonical_uri of $:/favicon.ico but not from base64 tex field?

77 views
Skip to first unread message

Siniy-Kit

unread,
Apr 18, 2020, 6:30:59 AM4/18/20
to TiddlyWiki
Hi! I want to change favicon.ico on my tiddlyspot site. I want to use external link https://heeg.ru/favicon.ico in _canonical_uri
field but this script $:/core/modules/server/routes/get-favicon.js wants only base64. How can I change this script, to make it use my link in _canonical_uri  field of $:/favicon.ico?

TonyM

unread,
Apr 20, 2020, 10:37:06 PM4/20/20
to TiddlyWiki
Siniy,

An Alternative hack,

With most websites The favicon is normally obtained by the browser from a file called favicon.ico in the same foldet as the index.html or in our case the wiki.

  • Tiddlywiki by passes this with $:/core/modules/startup/favicon.js using $:/favicon.ico 
  • If you edit this tiddler and remove the content the bypass no longer occurs
  • The Favicon thus appears to load from the folder where the tiddlywiki is, if it exists.
Thus the default behavior becomes using an external favicon.ico file. So if each wiki is in its own folder each can have their own favicon.

Could this work for you?

Regards
Tony

Siniy-Kit

unread,
Apr 22, 2020, 10:02:53 AM4/22/20
to TiddlyWiki
Hi, Tony. People make little shops on tiddlyspot like this

http://kazka.tiddlyspot.com/ 

all images they put from their Google Drive by URL. They want their own favicon by URL from Google Drive . It is not possible to take it from root folder of tiddlyspot. 



вторник, 21 апреля 2020 г., 5:37:06 UTC+3 пользователь TonyM написал:

Jeremy Ruston

unread,
Apr 22, 2020, 11:42:12 AM4/22/20
to TiddlyWiki
Hi Siniy-Kit

I’ve added support for the _canonical_uri field of $:/favicon.ico for the next version:


It’ll be available on https://tiddlywiki.com/prerelease in a few minutes (you can check on the build progress here: https://travis-ci.org/github/Jermolene/TiddlyWiki5/builds)

Best wishes

Jeremy.

-- 
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/716726bf-61ac-46ad-81fc-686092277afa%40googlegroups.com.

Siniy-Kit

unread,
Apr 22, 2020, 12:38:30 PM4/22/20
to TiddlyWiki
Thank you, Jeremy!

среда, 22 апреля 2020 г., 18:42:12 UTC+3 пользователь Jeremy Ruston написал:
Jeremy.

To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages