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