aboutsummaryrefslogtreecommitdiffstats
path: root/mod/nojs.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/nojs.php')
-rw-r--r--mod/nojs.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/nojs.php b/mod/nojs.php
index 3d894d13e..c6e04a72b 100644
--- a/mod/nojs.php
+++ b/mod/nojs.php
@@ -4,6 +4,7 @@ function nojs_init(&$a) {
setcookie('jsdisabled', 1, 0);
$p = $_GET['query'];
- goaway(z_root() . (($p) ? '/' . $p : ''));
+ $hasq = strpos($p,'?');
+ goaway(z_root() . (($p) ? '/' . $p : '') . (($hasq) ? '' : '?f=' ) . '&jsdisabled=1');
} \ No newline at end of file