Skip to content

Commit

Permalink
Fix last release
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandedeyne committed Feb 2, 2017
1 parent 6e08f62 commit 28f3b84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All Notable changes to `menu` will be documented in this file.

## 2.1.2
## 2.1.3
- Fixed setting an active url when the url is exactly the same

## 2.1.1
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/Activatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function determineActiveForUrl(string $url, string $root = '/')
$matchPath = Str::removeFromStart($root, $matchUrl->getPath());

// If this url starts with the url we're matching with, it's active.
if ($mathPath === $itemPath || Str::startsWith($matchPath, $itemPath)) {
if ($matchPath === $itemPath || Str::startsWith($matchPath, $itemPath)) {
return $this->setActive();
}

Expand Down

0 comments on commit 28f3b84

Please sign in to comment.