8000 Matching to path issue · Issue #15 · thoughtbot/middleman-aria_current · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Matching to path issue #15
Open
Open
@chrism

Description

@chrism

Using the gem I've found that the current_path includes forward slashes like this /link/ so that it fails to match the path using ==.

I've managed to fix this by changing it to

    if current_path.include? path
      link_options.merge!("aria-current" => aria_current)
    end

But wondered if this is a good approach?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0