am 8576132a
: AI 150393: edit the reference\'s navtree highlighting logic to handle intl/ directories BUG=1790234
Merge commit '8576132a38f4242c5f5da3133e832525a70766e6' * commit '8576132a38f4242c5f5da3133e832525a70766e6': AI 150393: edit the reference's navtree highlighting logic to handle intl/ directories
This commit is contained in:
commit
bbd6743f9e
1 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,8 @@ function this_page_relative(toroot)
|
|||
var file = "";
|
||||
if (toroot.substr(0, 1) == "/") {
|
||||
if (full.substr(0, toroot.length) == toroot) {
|
||||
return full.substr(toroot.length);
|
||||
var basePath = getBaseUri(full);
|
||||
return basePath.substring(toroot.length);
|
||||
} else {
|
||||
// the file isn't under toroot. Fail.
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue