summaryrefslogtreecommitdiffstats
path: root/lib/backbone
diff options
context:
space:
mode:
Diffstat (limited to 'lib/backbone')
-rw-r--r--lib/backbone/summary.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/backbone/summary.js b/lib/backbone/summary.js
index a79b1e9..5a2f7f2 100644
--- a/lib/backbone/summary.js
+++ b/lib/backbone/summary.js
@@ -39,6 +39,9 @@ function TOCArticle(def, parent) {
var parts = this.ref.split('#');
this.path = (parts.length > 1? parts.slice(0, -1).join('#') : this.ref);
this.anchor = (parts.length > 1? '#' + _.last(parts) : null);
+
+ // Normalize path to remove ('./', etc)
+ this.path = location.normalize(this.path);
}
}