1
0
mirror of https://github.com/flarum/core.git synced 2025-05-05 23:15:22 +02:00

Fix infinite redirect on some nojs pages.

This commit is contained in:
Franz Liedke 2015-09-23 17:55:16 +02:00
parent 4c6e03a692
commit 6f47f4a86f

View File

@ -41,7 +41,8 @@
app.boot(); app.boot();
@if (! $forum->attributes->debug) @if (! $forum->attributes->debug)
} catch (e) { } catch (e) {
window.location = window.location + '?nojs=1'; var nojs = window.location.indexOf('?') === -1 ? '?nojs=1' : ':nojs=1';
window.location = window.location + nojs;
} }
@endif @endif
</script> </script>