<!doctype html>
<html>
    <head>
        <title>adhocracy root page</title>
        <meta charset="utf-8">
        <link rel="stylesheet" href="/static/stylesheets/a3.css" />
        <link rel="stylesheet" href="/static/stylesheets/adhocracy3-icons.css" />
    </head>
    <body>
        <div data-ng-view=""></div>

        <script type="text/javascript"
                src="/static/lib/requirejs/require.js"></script>
        <script type="text/javascript"
                src="/static/require-config.js"></script>
        <script type="text/javascript"
                src="/static/lib/jquery/dist/jquery.js"></script>  <!-- only needed for $(document in this html file) -->

        <script type="text/javascript">
            require(["text!/config.json"], function(config_string) {
                var config = JSON.parse(config_string);

                var rest_url = config.rest_url;

                require(["Adhocracy", "text!" + rest_url + "/meta_api"], function(Adh, meta_api_string) {
                    var meta_api = JSON.parse(meta_api_string);
                    $(document).ready(function() {
                        Adh.init(config, meta_api);
                    });
                });
            });
        </script>
    </body>
</html>

<!doctype html>
<html>
    <head>
        <title>adhocracy root page</title>
        <meta charset="utf-8">
        <link rel="stylesheet" href="/static/stylesheets/a3.css" />
        <link rel="stylesheet" href="/static/stylesheets/adhocracy3-icons.css" />
        <base href="/">
    </head>
    <body>
        <div data-ng-view=""></div>

        <script type="text/javascript"
                src="/static/lib/requirejs/require.js"></script>
        <script type="text/javascript"
                src="/static/require-config.js"></script>
        <script type="text/javascript"
                src="/static/lib/jquery/dist/jquery.js"></script>  <!-- only needed for $(document in this html file) -->

        <script type="text/javascript">
            require(["text!/config.json"], function(config_string) {
                var config = JSON.parse(config_string);

                var rest_url = config.rest_url;

                require(["Adhocracy", "text!" + rest_url + "/meta_api"], function(Adh, meta_api_string) {
                    var meta_api = JSON.parse(meta_api_string);
                    $(document).ready(function() {
                        Adh.init(config, meta_api);
                    });
                });
            });
        </script>
    </body>
</html>

Set base URL to /
Set base URL to /

This is required for $location to work in Angular 1.3.

See https://docs.angularjs.org/error/$location/nobase
