AI 150393: edit the reference's navtree highlighting logic to handle intl/ directories
BUG=1790234 Automated import of CL 150393
This commit is contained in:
committed by
Dirk Dougherty
parent
1cb43f69d4
commit
8576132a38
@@ -104,7 +104,8 @@ function this_page_relative(toroot)
|
|||||||
var file = "";
|
var file = "";
|
||||||
if (toroot.substr(0, 1) == "/") {
|
if (toroot.substr(0, 1) == "/") {
|
||||||
if (full.substr(0, toroot.length) == toroot) {
|
if (full.substr(0, toroot.length) == toroot) {
|
||||||
return full.substr(toroot.length);
|
var basePath = getBaseUri(full);
|
||||||
|
return basePath.substring(toroot.length);
|
||||||
} else {
|
} else {
|
||||||
// the file isn't under toroot. Fail.
|
// the file isn't under toroot. Fail.
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user