From 918e22055701e2b5b534b7fd153dc279adbe820b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Fri, 10 Mar 2023 14:55:48 +0100 Subject: [PATCH] Move `$locationProvider` configuration to another file Actually the `config()` method of `admin_ofn` file did not run on `/admin/enterprises/*` pages for an unknown reason Now those two files have the same configuration --- app/assets/javascripts/admin/utils/utils.js.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/utils/utils.js.coffee b/app/assets/javascripts/admin/utils/utils.js.coffee index f509d32c1f..b8e1198e76 100644 --- a/app/assets/javascripts/admin/utils/utils.js.coffee +++ b/app/assets/javascripts/admin/utils/utils.js.coffee @@ -1,2 +1,3 @@ -angular.module("admin.utils", ["templates", "ngSanitize"]).config ($httpProvider) -> +angular.module("admin.utils", ["templates", "ngSanitize"]).config ($httpProvider, $locationProvider) -> + $locationProvider.hashPrefix('') $httpProvider.defaults.headers.common["Accept"] = "application/json, text/javascript, */*"