From e91b3707942c87db9d64d78dfb977cd71568acb8 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 23 Sep 2015 18:30:28 +0200 Subject: [PATCH] Fix last commit --- framework/core/views/app.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/views/app.blade.php b/framework/core/views/app.blade.php index fe29e42d0..cd46782d7 100644 --- a/framework/core/views/app.blade.php +++ b/framework/core/views/app.blade.php @@ -41,7 +41,7 @@ app.boot(); @if (! $forum->attributes->debug) } catch (e) { - var nojs = window.location.indexOf('?') === -1 ? '?nojs=1' : ':nojs=1'; + var nojs = window.location.search ? '&nojs=1' : '?nojs=1'; window.location = window.location + nojs; } @endif