xrf:// protocol should not mutate top-level URL

This commit is contained in:
Leon van Kammen 2026-07-07 18:25:24 +02:00
parent f11b420197
commit 9360423a5c

View file

@ -14,8 +14,10 @@ return {
obj.root = false
if obj.URI.target == '_top' then
obj.root = true
if obj.URI.protocol ~= 'xrf' then -- xrf:// should not update toplevel URI
api.ext.URI.current = obj.URL -- set current url
end
end
if type(obj.URI.target) == 'table' and obj.URI.target.obj ~= nil then
local parent = obj.URI.target.obj
-- TODO: the runtime/lovr/render/model code should calculate parent offset