Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(docs): fix doc app toolbar breadcrumb when using back button
Browse files Browse the repository at this point in the history
Closes #2464. Fixes #2285.
  • Loading branch information
matthewrfindley authored and ThomasBurleson committed Apr 22, 2015
1 parent 61990a3 commit 58f2c48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/app/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,12 @@ function(SERVICES, COMPONENTS, DEMOS, PAGES, $location, $rootScope) {
function onLocationChange() {
var path = $location.path();

if (path == '/') {
self.selectSection(null);
self.selectPage(null, null);
return;
}

var matchPage = function(section, page) {
if (path === page.url) {
self.selectSection(section);
Expand Down

0 comments on commit 58f2c48

Please sign in to comment.