fix(js): add ROOT_PATH to window.location navigations
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -112,7 +112,7 @@ function updateSyncPanel(data) {
|
|||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
document.getElementById('lastSyncRow')?.addEventListener('click', () => {
|
document.getElementById('lastSyncRow')?.addEventListener('click', () => {
|
||||||
const targetId = _currentRunId || _lastRunId;
|
const targetId = _currentRunId || _lastRunId;
|
||||||
if (targetId) window.location = '/logs?run=' + targetId;
|
if (targetId) window.location = (window.ROOT_PATH || '') + '/logs?run=' + targetId;
|
||||||
});
|
});
|
||||||
document.getElementById('lastSyncRow')?.addEventListener('keydown', (e) => {
|
document.getElementById('lastSyncRow')?.addEventListener('keydown', (e) => {
|
||||||
const targetId = _currentRunId || _lastRunId;
|
const targetId = _currentRunId || _lastRunId;
|
||||||
|
|||||||
@@ -726,8 +726,8 @@ async function importCsv() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function exportCsv() { window.location.href = '/api/mappings/export-csv'; }
|
function exportCsv() { window.location.href = (window.ROOT_PATH || '') + '/api/mappings/export-csv'; }
|
||||||
function downloadTemplate() { window.location.href = '/api/mappings/csv-template'; }
|
function downloadTemplate() { window.location.href = (window.ROOT_PATH || '') + '/api/mappings/csv-template'; }
|
||||||
|
|
||||||
// ── Duplicate / Conflict handling ────────────────
|
// ── Duplicate / Conflict handling ────────────────
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user