mirror of
https://gitdab.com/cadence/breezewiki.git
synced 2026-03-05 13:40:27 -05:00
Fix more redirects in offline mode
This commit is contained in:
@@ -127,7 +127,7 @@
|
|||||||
(var target (query-maybe-value* "select redirect from page where wikiname = ? and basename = ?" wikiname basename))
|
(var target (query-maybe-value* "select redirect from page where wikiname = ? and basename = ?" wikiname basename))
|
||||||
[target
|
[target
|
||||||
; don't url decode the target, or Category: pages will be interpreted as a protocol
|
; don't url decode the target, or Category: pages will be interpreted as a protocol
|
||||||
(generate-redirect (regexp-replace* #rx"#" target "/"))]
|
(generate-redirect (format "/~a/wiki/~a" wikiname (regexp-replace* #rx"#" target "/")))]
|
||||||
|
|
||||||
;; breezewiki doesn't have the page archived, see if we can make a network request for it
|
;; breezewiki doesn't have the page archived, see if we can make a network request for it
|
||||||
[(not (config-true? 'feature_offline::only))
|
[(not (config-true? 'feature_offline::only))
|
||||||
|
|||||||
Reference in New Issue
Block a user