Skip to content

Commit

Permalink
Merge pull request #28 from luckyframework/matthewmcgarvey/current-pa…
Browse files Browse the repository at this point in the history
…ge-fix

Fix current_page? check
  • Loading branch information
matthewmcgarvey authored Mar 23, 2021
2 parents 6860b07 + 0e4def8 commit 5a98f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/breeze/components/breeze/navbar_link.cr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Breeze::NavbarLink < Breeze::BreezeComponent

def link_styles
extra_classes =
if current_page?(context.request.path)
if current_page?(link_to)
link_active_class
else
link_inactive_class
Expand Down

0 comments on commit 5a98f72

Please sign in to comment.