<script type="text/javascript">
    window.GravAdmin = window.GravAdmin || {};
    window.GravAdmin.config = {
        base_url_relative: '{{ base_url_relative }}',
        param_sep: '{{ config.system.param_sep }}',
        enable_auto_updates_check: '{{ config.plugins.admin.enable_auto_updates_check }}',
        admin_timeout: '{{ config.plugins.admin.session.timeout ?: 1800 }}'
    };
    window.GravAdmin.uri_params = {};

    {% for param, value in grav.uri.params(null, true) %}
        window.GravAdmin.uri_params.{{param}} = "{{value}}";
    {% endfor %}
</script>

<script type="text/javascript">
    window.GravAdmin = window.GravAdmin || {};
    window.GravAdmin.config = {
        base_url_relative: '{{ base_url_relative }}',
        param_sep: '{{ config.system.param_sep }}',
        enable_auto_updates_check: '{{ config.plugins.admin.enable_auto_updates_check }}',
        admin_timeout: '{{ config.plugins.admin.session.timeout ?: 1800 }}'
    };
    window.GravAdmin.uri_params = {};

    {% for param, value in grav.uri.params(null, true) %}
        window.GravAdmin.uri_params.{{param}} = "{{value|replace({'\\': '/'})}}";
    {% endfor %}
</script>

Fix for chrome converting backslashes to slashes automatically
Fix for chrome converting backslashes to slashes automatically
