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

Slug-relative link

Solved by andrii burkatskyi View solution

Started by andrii burkatskyi 8 years ago · 1 replies · 797 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 webmasterodp, 1 week ago
4 172 1 week ago
Support · by nwhitfield, 1 week ago
2 150 1 week ago
Support · by stell, 3 weeks ago
5 381 2 weeks ago
Support · by gravinator, 1 month ago
5 574 2 weeks ago
Support · by Gravver, 3 weeks ago
6 360 3 weeks ago