Skip to content

Commit 05c7164

Browse files
josephperrottjelbourn
authored andcommittedMay 3, 2018
fix: set rootUrl during construction of table of contents (#445)
1 parent 0531cc6 commit 05c7164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎material.angular.io/src/app/shared/table-of-contents/table-of-contents.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class TableOfContents implements OnInit {
3333
@Input() container: string;
3434
@Input() headerSelectors = '.docs-markdown-h3,.docs-markdown-h4';
3535

36-
_rootUrl: string;
36+
_rootUrl = this._router.url.split('#')[0];
3737
private _scrollContainer: any;
3838
private _destroyed = new Subject();
3939
private _urlFragment = '';

0 commit comments

Comments
 (0)
Please sign in to comment.