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

.active class applied to .main-menu li when using custom relative URLs in Menus #914

Closed
dylanmcleod opened this issue Oct 30, 2016 · 2 comments
Labels

Comments

@dylanmcleod
Copy link

I am building a one page site, however there a couple of separate pages (eg Posts page, Archives, 404 etc) that I need to link back to the Home page, not an anchor on that particular page. When using a relative URL with the anchor link, the .main-menu li has an .active class applied to it.

How can this bug be reproduced?

  1. Step one
    Create a custom relative link in Menus eg. /#style-anchor
  2. Step two
    Save Menu

What did you expect to happen?
As expected the link behaves as normal, scrolling to it's respective anchor tag on the homepage, and when on a separate page, links back to the anchor on the homepage

What happened instead?
However, when using a relative URL with the anchor link, the .main-menu li has an .active class applied to it.

Please List the Following:

  • OS & version: Mac OS El Capitan 10.11.6
  • Node version (node -v) [Node v4+ is required] : v5.1.1
  • Foundation version (bower list) : 6.2

Include Test Case (if applicable):
http://bossy2.dylanmcleod.net.au/

I've tried removing all custom JS and deactivating plugins.

active-class-being-applied

@olefredrik olefredrik added the bug label Aug 6, 2017
@linuxbastard
Copy link
Contributor

linuxbastard commented Aug 7, 2017

Edit:
Just tested it and this does not seem to be happening in the latest FP.

Might be related to #933

@olefredrik
Copy link
Owner

#1032

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants