Fix 4chan board links in header when on other boards.

This commit is contained in:
ccd0 2018-01-24 00:12:40 -08:00
parent 4acfec4d12
commit c1d8b08746
2 changed files with 2 additions and 2 deletions

View File

@ -232,7 +232,7 @@ Header =
boardID = g.BOARD.ID
else
a = $.el 'a',
href: "/#{g.BOARD.ID}/"
href: "//boards.4chan.org/#{g.BOARD.ID}/"
textContent: text or g.BOARD.ID
className: 'current'
if /-(catalog|archive|expired)/.test(t)

View File

@ -68,7 +68,7 @@ CatalogLinks =
# Href is easier than pathname because then we don't have
# conditions where External Catalog has been disabled between switches.
a.href = if Conf['Header catalog links'] then CatalogLinks.catalog(board) else "/#{board}/"
a.href = if Conf['Header catalog links'] then CatalogLinks.catalog(board) else "//boards.4chan.org/#{board}/"
if a.dataset.indexOptions and a.hostname is 'boards.4chan.org' and a.pathname.split('/')[2] is ''
a.href += (if a.hash then '/' else '#') + a.dataset.indexOptions