Further archive link work.
This commit is contained in:
parent
3284de0d06
commit
4eb0574505
@ -45,7 +45,7 @@ Redirect =
|
||||
cb?()
|
||||
|
||||
to: (dest, data) ->
|
||||
archive = (if dest is 'search' or 'board' then Redirect.data.thread else Redirect.data[dest])[data.boardID]
|
||||
archive = (if dest in ['search', 'board'] then Redirect.data.thread else Redirect.data[dest])[data.boardID]
|
||||
return '' unless archive
|
||||
Redirect[dest] archive, data
|
||||
|
||||
|
||||
@ -140,9 +140,8 @@ Header =
|
||||
else
|
||||
a.textContent
|
||||
|
||||
if /-archive/.test t
|
||||
a.href = Redirect.to 'board',
|
||||
boardID: board
|
||||
if /-archive/.test(t) and href = Redirect.to 'board', {boardID: board}
|
||||
a.href = href
|
||||
|
||||
$.addClass a, 'navSmall' if board is '@'
|
||||
return a
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user