Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8968,7 +8968,10 @@ def unescape(name):
if ftab[1].startswith("page="):
self.kind = LINK_GOTOR
self.file_spec = ftab[0]
self.page = int(ftab[1].split("&")[0][5:]) - 1
page_part = ftab[1][5:]
if "&" in page_part:
page_part = page_part.split("&")[0]
self.page = int(page_part) - 1
elif ":" in self.uri:
self.is_uri = True
self.kind = LINK_URI
Expand Down
5 changes: 4 additions & 1 deletion src_classic/helper-python.i
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,10 @@ class linkDest(object):
if ftab[1].startswith("page="):
self.kind = LINK_GOTOR
self.fileSpec = ftab[0]
self.page = int(ftab[1][5:]) - 1
page_part = ftab[1][5:]
if "&" in page_part:
page_part = page_part.split("&")[0]
self.page = int(page_part) - 1
else:
self.isUri = True
self.kind = LINK_LAUNCH
Expand Down
Loading