Merge pull request 'FIX: #8081 - Redirect to Lilium from create claim' (!3070) from hotfix_redirect_to_lilium into master
gitea/salix/pipeline/head This commit looks good Details
gitea/salix/pipeline/pr-test This commit looks good Details

Reviewed-on: #3070
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Javier Segarra 2024-10-04 07:24:26 +00:00
commit 7e27026cbc
1 changed files with 3 additions and 3 deletions

View File

@ -66,15 +66,15 @@ export default class App {
]} ]}
}; };
const hasId = !isNaN(parseInt(route.split('/')[1]));
if (this.logger.$params.q) { if (this.logger.$params.q) {
let tableValue = this.logger.$params.q; let tableValue = this.logger.$params.q;
const q = JSON.parse(tableValue); const q = JSON.parse(tableValue);
if (typeof q === 'number') if (typeof q === 'number')
tableValue = JSON.stringify({id: tableValue}); tableValue = JSON.stringify({id: tableValue});
newRoute = newRoute.concat(`?table=${tableValue}`); newRoute = newRoute.concat(`?table=${tableValue}`);
} } else if (!hasId && this.logger.$params.id && newRoute.indexOf(this.logger.$params.id) < 0)
if (this.logger.$params.id && newRoute.indexOf(this.logger.$params.id) < 0)
newRoute = newRoute.concat(`${this.logger.$params.id}`); newRoute = newRoute.concat(`${this.logger.$params.id}`);
return this.logger.$http.get('Urls/findOne', {filter}) return this.logger.$http.get('Urls/findOne', {filter})