Index: lib/ui.js |
=================================================================== |
--- a/lib/ui.js |
+++ b/lib/ui.js |
@@ -627,10 +627,11 @@ |
* send the UI language to adblockplus.org so that the correct language |
* version of the page can be selected. |
*/ |
- loadDocLink: function(/**String*/ linkID, /**Window*/ window) |
+ loadDocLink: function(/**String*/ linkID, /**String*/ anchorID, /**Window*/ window) |
{ |
let {Prefs} = require("prefs"); |
- let link = Prefs.documentation_link.replace(/%LINK%/g, linkID).replace(/%LANG%/g, Utils.appLocale); |
+ let anchor = anchorID && anchorID.length > 0 ? '#' + anchorID : ''; |
+ let link = Prefs.documentation_link.replace(/%LINK%/g, linkID).replace(/%ANCHOR%/g, anchor).replace(/%LANG%/g, Utils.appLocale); |
this.loadInBrowser(link, window); |
}, |