Throw an error if an absolute URL is passed to Image Loaders
refactor(common): throw an error if an absolute URL is passed to Image Loaders (#47082)
Throw an error if an absolute URL is passed to Image Loaders810608-refactor-throw-an-error-if-an-absoluterefactorthrow error absolute url passed image
Committed by AndrewKushnir
commit message
refactor(common): throw an error if an absolute URL is passed to Image Loaders (#47082)
This commit updates the logic of Image Loaders to throw an error in case an absolute URL is provided an an input to the loader function. The loaders can construct URLs based on image paths relative to the bas URL configured for a loader.
PR Close #47082Editor assessment
The type deserves scrutiny: making loaders "throw an error" for absolute URLs introduces new runtime behavior, which leans `feat` (or `fix` if correcting a silent misuse) rather than `refactor`, which conventionally implies no observable change. The subject is otherwise well formed and specific. The body explains the rule and the rationale — loaders build URLs "relative to the bas URL" — but contains distracting typos ("provided an an input," "bas URL"). Proofreading would raise this message's credibility considerably.