fix: without path
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Alex Moreno 2024-07-23 13:57:14 +02:00
parent a472059043
commit eb18bd2400
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,8 @@ config.$inject = ['$stateProvider', '$urlRouterProvider'];
function config($stateProvider, $urlRouterProvider) {
$urlRouterProvider
.otherwise(async($injector, {$location}) => {
if (!$location.$$path) return window.location.href = '/#!/';
const url = $location.$$absUrl
.replace('5000', '9000')
.replace('salix', 'lilium')