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"] + )