1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-11-03 09:04:47 +00:00

use relative paths to support LAMINAR_BASE_URL option

This commit is contained in:
Paolo Greppi
2021-03-17 09:21:16 +01:00
committed by Oliver Giles
parent 7e77ec1211
commit c7c586167c
2 changed files with 19 additions and 19 deletions

View File

@@ -476,7 +476,7 @@ const All = templateId => {
return ret;
},
wallboardLink: function() {
return '/wallboard' + (state.group ? '?filter=' + state.groups[state.group] : '');
return 'wallboard' + (state.group ? '?filter=' + state.groups[state.group] : '');
}
}
};
@@ -603,7 +603,7 @@ const Run = templateId => {
// Check for the /latest endpoint
const params = this._props.route.params;
if(params.number === 'latest')
return this.$router.replace('/jobs/' + params.name + '/' + data.latestNum);
return this.$router.replace('jobs/' + params.name + '/' + data.latestNum);
state.number = parseInt(params.number);
state.jobsRunning = [];