Manually disable html5Mode and rewriteLinks (#19184) (#19198)

This commit is contained in:
Tim Roes 2018-05-18 13:19:17 +02:00 committed by GitHub
parent 3ef60bdbb3
commit 160dd6bfd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,6 +31,13 @@ export function initAngularApi(chrome, internals) {
a.href = chrome.addBasePath('/elasticsearch');
return a.href;
}()))
.config($locationProvider => {
$locationProvider.html5Mode({
enabled: false,
requireBase: false,
rewriteLinks: false,
});
})
.config(chrome.$setupXsrfRequestInterceptor)
.config(function ($compileProvider, $locationProvider) {
if (!internals.devMode) {