diff --git a/framework/core/views/app.blade.php b/framework/core/views/app.blade.php index 0f566a9c0..fe29e42d0 100644 --- a/framework/core/views/app.blade.php +++ b/framework/core/views/app.blade.php @@ -41,7 +41,8 @@ app.boot(); @if (! $forum->attributes->debug) } catch (e) { - window.location = window.location + '?nojs=1'; + var nojs = window.location.indexOf('?') === -1 ? '?nojs=1' : ':nojs=1'; + window.location = window.location + nojs; } @endif