summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xsrc/components/xriProtocolHandler.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/xriProtocolHandler.js b/src/components/xriProtocolHandler.js
index 3d27784..2e09f64 100755
--- a/src/components/xriProtocolHandler.js
+++ b/src/components/xriProtocolHandler.js
@@ -290,12 +290,14 @@ function renderService(srv, doc, qxri)
}
var linkhref = u.nodeValue;
var xrap = uu.getAttribute('append');
if(xrap=='qxri') {
linkhref += qxri.replace(/^xri:\/\//,'');
+ }else if(xrap=='authority') {
+ linkhref += qxri.replace(/^xri:\/\//,'').replace(/\//.*,'');
}else if(xrap!=null){
dump("Unhandled @append: "+xrap+"\n");
}
html_uris += "<a href=\""+linkhref+"\">"
+ linkContent + "</a>";
html_uris += "</div>";