xrf:// protocol should not mutate top-level URL
This commit is contained in:
parent
f11b420197
commit
9360423a5c
1 changed files with 3 additions and 1 deletions
|
|
@ -14,8 +14,10 @@ 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
|
||||||
|
if obj.URI.protocol ~= 'xrf' then -- xrf:// should not update toplevel URI
|
||||||
api.ext.URI.current = obj.URL -- set current url
|
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
|
||||||
-- TODO: the runtime/lovr/render/model code should calculate parent offset
|
-- TODO: the runtime/lovr/render/model code should calculate parent offset
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue