fix(salix): rollback updateClaim #2897

Merged
carlossa merged 3 commits from hotfix_claimLink into master 2024-08-28 09:35:23 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 27e30c0051 - Show all commits

View File

@ -56,6 +56,8 @@ export default class App {
}
getUrl(route, appName = 'lilium') {
const index = window.location.hash.indexOf(route.toLowerCase());
const newRoute = index < 0 ? route : window.location.hash.substring(index);
const env = process.env.NODE_ENV;
const filter = {
where: {and: [
@ -67,7 +69,7 @@ export default class App {
return this.logger.$http.get('Urls/findOne', {filter})
.then(res => {
if (res && res.data)
return res.data.url + route;
return res.data.url + newRoute;
})
.catch(() => {
this.showError('Direction not found');