From 85ea2fffc286bde5ed69d273ca38feecca2d6089 Mon Sep 17 00:00:00 2001 From: dbrianwalton Date: Mon, 20 Jul 2026 15:47:11 -0400 Subject: [PATCH] FITB: Import of local libraries need to be relative to document not RS library --- bases/rsptx/interactives/runestone/fitb/js/fitb.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bases/rsptx/interactives/runestone/fitb/js/fitb.js b/bases/rsptx/interactives/runestone/fitb/js/fitb.js index e177de73f..7eca3e6f0 100644 --- a/bases/rsptx/interactives/runestone/fitb/js/fitb.js +++ b/bases/rsptx/interactives/runestone/fitb/js/fitb.js @@ -145,9 +145,11 @@ export default class FITB extends RunestoneBase { ); break; // Allow for local imports, usually from problems defined outside the Runestone Components. + // Relative URL should be relative to document base, not this library default: - import_promises.push( - import(/* webpackIgnore: true */ import_), + const absoluteUrl = new URL(import_, document.baseURI).href; + import_promises.push( + import(/* webpackIgnore: true */ absoluteUrl), ); break; }