mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
[fix] Pass plain link to link:onGotoLink (#5286)
Internal links carry more baggage than external ones. See <https://github.com/koreader/koreader/pull/5282#issuecomment-526813719>.
This commit is contained in:
@@ -861,7 +861,8 @@ function ReaderHighlight:onHoldRelease()
|
||||
{
|
||||
text = _("Follow Link"),
|
||||
callback = function()
|
||||
self.ui.link:onGotoLink(self.selected_link)
|
||||
local link = self.selected_link.link or self.selected_link
|
||||
self.ui.link:onGotoLink(link)
|
||||
self:onClose()
|
||||
end,
|
||||
},
|
||||
|
||||
@@ -457,8 +457,9 @@ function DictQuickLookup:update()
|
||||
UIManager:close(self)
|
||||
self:lookupWikipedia()
|
||||
else
|
||||
local link = self.selected_link.link or self.selected_link
|
||||
self.ui.link:onGotoLink(link)
|
||||
self:onClose()
|
||||
self.ui.link:onGotoLink(self.selected_link)
|
||||
end
|
||||
end,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user