diff --git a/c2cgeoportal/scripts/import_ngeo_apps.py b/c2cgeoportal/scripts/import_ngeo_apps.py index 5acfc5d9b0..2afd6bb0f7 100644 --- a/c2cgeoportal/scripts/import_ngeo_apps.py +++ b/c2cgeoportal/scripts/import_ngeo_apps.py @@ -174,12 +174,22 @@ def main(): if args.html: if args.interface == "mobile": + data = _sub( + r"", + """ + <% + request_get_no_redirect = request.GET + request_get_no_redirect['no_redirect'] = u'' + %> + """, + data, + ) data = _sub( re.escape( r"http://camptocamp.github.io/ngeo/master/" - r"examples/contribs/gmf/apps/desktop/" + r"examples/contribs/gmf/apps/desktop/?no_redirect" ), - "${request.route_url('desktop', _query=dict(request.GET)) | n}", + "${request.route_url('desktop', _query=dict(request_get_no_redirect)) | n}", data, ) if args.interface == "desktop":