Manually disable html5Mode and rewriteLinks (#19184)

This commit is contained in:
Tim Roes 2018-05-18 09:55:30 +02:00 committed by GitHub
parent d4f8a70527
commit 39b277d372
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) {