Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Hide modular folders name from url?

Started by Thomas Winzer 6 years ago · 1 replies · 586 views
6 years ago

Hi,
this ist my folder structure:

01.jobs (modular)

  • _hero
  • _intro
  • _offers
    -- joboffer01
    -- joboffer02

The Url for joboffer01 looks like /jobs/_offers/joboffer01 - is it possible to hide the modular folders name from the url, something like /jobs/joboffer01?

Best regards,
Thomas

last edited 10/12/20 by Thomas Winzer
6 years ago

Hi Thomas,

modular structure should always be hidden from view - there may be something wrong with your folder structure.

The modules should be in folders too, so

01.jobs is a folder that contains a markdown file called modular.md
inside which there are several folders:
_hero is folder that contains a markdown file called hero.md
_intro is a folder that contains text.md
etc...

Is that what you have?

Then it look like _offers is collecting from a different page - is that correct?

Suggested topics

Topic Participants Replies Views Activity
General · by Andy Miller, 3 days ago
0 66 3 days ago
General · by lynbor, 4 weeks ago
3 410 1 week ago
General · by lynbor, 2 weeks ago
7 523 1 week ago
General · by Harry, 2 weeks ago
0 142 2 weeks ago
General · by Old Man Umby, 4 weeks ago
2 290 3 weeks ago