mirror of
https://github.com/flarum/framework.git
synced 2025-02-24 05:01:03 +08:00
Fix infinite redirect on some nojs pages.
This commit is contained in:
parent
03bc0e0dec
commit
9ecf79e385
@ -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
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user