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

Slug-relative link

Solved by andrii burkatskyi View solution

Started by andrii burkatskyi 8 years ago · 1 replies · 557 views
8 years ago

Hi there!
I have an issue with links to files that i upload to my site. Will try to explain:
My site have folder structure like

TXT
├── 01.folder1
     ├── 01.folder2
          ├── default.md
          └── file.zip

I upload zip-file and make link: [file](file.zip). Link href looks good /folder1/folder2/file.zip but leads to the 404 page because folder names has numbers.
How can i force Grav to redirect requests correctly from /folder1/folder2/file.zip to /01.folder1/01.folder2/file.zip?

Suggested topics

Topic Participants Replies Views Activity
Support · by BenLaKnet, 6 days ago
1 125 3 days ago
Support · by BenLaKnet, 1 week ago
5 196 3 days ago
Support · by kskt, 3 days ago
0 48 3 days ago
Support · by David Meissner, 3 days ago
0 48 3 days ago
Support · by David Meissner, 4 days ago
3 94 3 days ago