summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/lpdf-ano.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/lpdf-ano.lua')
-rw-r--r--tex/context/base/mkiv/lpdf-ano.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/lpdf-ano.lua b/tex/context/base/mkiv/lpdf-ano.lua
index 42e3c3b10..657ff17e5 100644
--- a/tex/context/base/mkiv/lpdf-ano.lua
+++ b/tex/context/base/mkiv/lpdf-ano.lua
@@ -512,8 +512,11 @@ end
local function pdflinkname(destination,internal,page)
local method = references.innermethod
if method == v_auto then
- flaginternals[internal] = true -- for bookmarks and so
- local used = usedinternals[internal]
+ local used = defaultview
+ if internal then
+ flaginternals[internal] = true -- for bookmarks and so
+ used = usedinternals[internal] or defaultview
+ end
if used == defaultview then -- or used == true then
return pagereferences[page]
else