提交 4e1b9e12 编写于 作者: K Kohsuke Kawaguchi

Cheaper handling of query string / fragment identifier.

上级 022544dc
......@@ -54,8 +54,16 @@ var breadcrumbs = (function() {
}
function combinePath(a,b) {
if (a.endsWith('/')) return a+b;
return a+'/'+b;
var qs;
var i = a.indexOf('?');
if (i>=0) { qs=a.substring(i); a=a.substring(0,i); }
else qs="";
i=a.indexOf('#');
if (i>=0) a=a.substring(0,i);
if (a.endsWith('/')) return a+b+qs;
return a+'/'+b+qs;
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册