Diffs: preserve base paths for viewer assets

This commit is contained in:
Gustavo Madeira Santana
2026-03-30 15:28:16 -04:00
parent b96b1efc69
commit 4a6267bfe1
7 changed files with 35 additions and 10 deletions

View File

@@ -281,6 +281,8 @@ Viewer assets:
- `/plugins/diffs/assets/viewer.js`
- `/plugins/diffs/assets/viewer-runtime.js`
The viewer document resolves those assets relative to the viewer URL, so an optional `baseUrl` path prefix is preserved for both asset requests too.
URL construction behavior:
- If `baseUrl` is provided, it is used after strict validation.