Favicon working
Posted by mholmes on 20 Sep 2011 in Activity log
This turned out to be completely straightforward, but I'm blogging it so I don't have to figure it out again:
- Upload the favicon.ico file into /db/site (location of controller.xql).
- Add this to the header of HTML files:
<link rel="icon" href="favicon.ico"/>
- Add this to controller.xql:
else if ($exist:resource eq 'favicon.ico') then <dispatch xmlns="http://exist.sourceforge.net/NS/exist"> <forward url="{concat($exist:controller, '/', 'favicon.ico')}"/> </dispatch>