class="active" not created

Created on 13 April 2016, over 8 years ago
Updated 2 May 2024, 7 months ago

Hi

I'm on 7.43 and are using Nice Menus 7.x-2.5. I just noticed a problem but can't say it is connected to Nice Menu, but I have to put the question somewhere.

When I under admin/structure/menus manually creates menu links, not all links produces class="active". After a while I found a pattern:

  1. All nodes created by a Content type, like node/53, works just fine, there are class="active" in the menus
  2. Just some of the Pages made manually under admin/structure/pages produces class="active"
  3. Pages with a functioning class="active" has a link with a Path name like "anypage"
  4. Pages not producing class="active" has a link with a Path name like "/anypage". The difference is the /.

So why do I not write the Path without / ? Because it is impossible for some Pages. On some I can write without / and class="active" will appear, but on others when I try to write without / I will have the message "The path 'anypage' is either invalid or you do not have access to it." When I add / in the beginning, I can creat the link but there will be no class="active"

As far I can see there is no difference at all in the settings between the different pages.

Can anyone give me a lead what this is all about. Please, I really want the active class in the menu.

Hans

πŸ’¬ Support request
Status

Closed: outdated

Version

2.5

Component

Miscellaneous

Created by

πŸ‡«πŸ‡·France hassebasse

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024