From faf740d224f747433057e4d976356b6357126f6e Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 15 Dec 2016 16:23:10 +0000 Subject: [PATCH] Disable link rewriting. --- services/web/public/coffee/main.coffee | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/main.coffee b/services/web/public/coffee/main.coffee index 471870f280..cf2da7d39e 100644 --- a/services/web/public/coffee/main.coffee +++ b/services/web/public/coffee/main.coffee @@ -33,4 +33,18 @@ define [ "filters/formatDate" "__MAIN_CLIENTSIDE_INCLUDES__" ], () -> - angular.bootstrap(document.body, ["SharelatexApp"]) + angular.module('SharelatexApp').config( + ($locationProvider) -> + try + $locationProvider.html5Mode({ + enabled: true, + requireBase: false, + rewriteLinks: false + }) + catch e + console.error "Error while trying to fix '#' links: ", e + ) + angular.bootstrap( + document.body, + ["SharelatexApp"] + )