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,7 +14,9 @@ return {
obj.root = false obj.root = false
if obj.URI.target == '_top' then if obj.URI.target == '_top' then
obj.root = true obj.root = true
api.ext.URI.current = obj.URL -- set current url if obj.URI.protocol ~= 'xrf' then -- xrf:// should not update toplevel URI
api.ext.URI.current = obj.URL -- set current url
end
end end
if type(obj.URI.target) == 'table' and obj.URI.target.obj ~= nil then if type(obj.URI.target) == 'table' and obj.URI.target.obj ~= nil then
local parent = obj.URI.target.obj local parent = obj.URI.target.obj