Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Folder hide in URL

Started by Muut Archive 10 years ago · 2 replies · 689 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 Muut Archive, 10 years ago
1 676 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5338 9 years ago
Archive · by Muut Archive, 9 years ago
1 4135 9 years ago