feat: redirect to lilium page not found #2731
|
@ -5,6 +5,8 @@ config.$inject = ['$stateProvider', '$urlRouterProvider'];
|
||||||
function config($stateProvider, $urlRouterProvider) {
|
function config($stateProvider, $urlRouterProvider) {
|
||||||
$urlRouterProvider
|
$urlRouterProvider
|
||||||
.otherwise(async($injector, {$location}) => {
|
.otherwise(async($injector, {$location}) => {
|
||||||
|
if (!$location.$$path) return window.location.href = '/#!/';
|
||||||
|
|
||||||
const url = $location.$$absUrl
|
const url = $location.$$absUrl
|
||||||
.replace('5000', '9000')
|
.replace('5000', '9000')
|
||||||
.replace('salix', 'lilium')
|
.replace('salix', 'lilium')
|
||||||
|
|
Loading…
Reference in New Issue