提交 e50f0f5f 编写于 作者: J Jesse Glick

If urlChildPrefix is ".", do not prefix shortUrl with "./".

上级 c4e3adde
......@@ -401,7 +401,9 @@ public abstract class AbstractItem extends Actionable implements Item, HttpDelet
}
public String getShortUrl() {
return getParent().getUrlChildPrefix()+'/'+Util.rawEncode(getName())+'/';
String prefix = getParent().getUrlChildPrefix();
String subdir = Util.rawEncode(getName());
return prefix.equals(".") ? subdir : prefix+'/'+subdir+'/';
}
public String getSearchUrl() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册