Skip to content

Hidden Menu Items Return 404 #35

@simondmorias

Description

@simondmorias

I have a site with two directories in the content directory:

| content
--| schemas
   -- | page1.md
--| subschemas
   -- | subpage.md

In my config I have:

menu_exclusion = [
        "subschemas"]

This is because I do not want subschemas appearing in the menu (the content is 200+ pages) - but there are links from pages on the schemas pages to subschemas. When I hide them using the above the exclusions the links all return 404's.

Is there anyway to hide an item from a menu but still be able to reference it by URL?

Sorry I'm new to Hugo - I've looked around I can't find anything obvious, from what I read this behaviour is down to how the theme has been implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions