Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Folder hide in URL

Started by Muut Archive 10 years ago · 2 replies · 508 views
10 years ago

Hi! Is it possible to hide certain folder (e.g. footer navigation placed in "footer" folder) in URL address? How?

10 years ago

so then i gonna have example.com/some-section instead of example.com/footer/some-section

10 years ago

You can remove the number from a folder i.e. footer instead of 01.footer and fetch the pages in Twig via {% set pages = pages.find('/footer') %}. Or you can explicitly set a slug or aliases.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1368 9 years ago
Archive · by Muut Archive, 9 years ago
2 942 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1125 9 years ago