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"),
|
text = _("Follow Link"),
|
||||||
callback = function()
|
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()
|
self:onClose()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -457,8 +457,9 @@ function DictQuickLookup:update()
|
|||||||
UIManager:close(self)
|
UIManager:close(self)
|
||||||
self:lookupWikipedia()
|
self:lookupWikipedia()
|
||||||
else
|
else
|
||||||
|
local link = self.selected_link.link or self.selected_link
|
||||||
|
self.ui.link:onGotoLink(link)
|
||||||
self:onClose()
|
self:onClose()
|
||||||
self.ui.link:onGotoLink(self.selected_link)
|
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user