Fix catalog/search link rewriting. #2151
This commit is contained in:
parent
3c00979b49
commit
efb1a0498a
@ -37,8 +37,8 @@ CatalogLinks =
|
|||||||
|
|
||||||
node: ->
|
node: ->
|
||||||
for a in $$ 'a', @nodes.comment
|
for a in $$ 'a', @nodes.comment
|
||||||
if m = a.href.match /^https?:\/\/boards\.4chan(?:nel)?\.org\/([^\/]+)\/catalog(#s=.*)?/
|
if m = a.href.match /^https?:\/\/(boards\.4chan(?:nel)?\.org\/[^\/]+)\/catalog(#s=.*)?/
|
||||||
a.href = "//boards.4chan(?:nel)?.org/#{m[1]}/#{m[2] or '#catalog'}"
|
a.href = "//#{m[1]}/#{m[2] or '#catalog'}"
|
||||||
return
|
return
|
||||||
|
|
||||||
toggle: ->
|
toggle: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user