7806_devToTest_2332 #2801
|
@ -5,12 +5,13 @@ config.$inject = ['$stateProvider', '$urlRouterProvider'];
|
|||
function config($stateProvider, $urlRouterProvider) {
|
||||
$urlRouterProvider
|
||||
.otherwise(async($injector, {$location}) => {
|
||||
if (!$location.$$path) return window.location.href = '/#!/';
|
||||
const prefix = '#!';
|
||||
if (!$location.$$path) return window.location.href = `/${prefix}/`;
|
||||
|
||||
const url = $location.$$absUrl
|
||||
.replace('5000', '9000')
|
||||
.replace('salix', 'lilium')
|
||||
.replace('#!', '#')
|
||||
.replace(prefix, '#')
|
||||
.replace('client', 'customer');
|
||||
window.location.href = url;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue