summaryrefslogtreecommitdiff
path: root/crates/typst-pdf/src/page.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-pdf/src/page.rs')
-rw-r--r--crates/typst-pdf/src/page.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-pdf/src/page.rs b/crates/typst-pdf/src/page.rs
index 27daf6c9..4e95f3c7 100644
--- a/crates/typst-pdf/src/page.rs
+++ b/crates/typst-pdf/src/page.rs
@@ -154,7 +154,7 @@ fn write_page(
.action()
.action_type(ActionType::GoTo)
// `key` must be a `Str`, not a `Name`.
- .pair(Name(b"D"), Str(key.as_str().as_bytes()));
+ .pair(Name(b"D"), Str(key.resolve().as_bytes()));
continue;
} else {
ctx.document.introspector.position(*loc)