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 · 771 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 gravinator, 1 month ago
5 453 2 hours ago
Support · by stell, 7 days ago
4 238 5 days ago
Support · by Gravver, 2 weeks ago
6 280 1 week ago
Support · by Marcel, 4 weeks ago
2 338 1 week ago
Support · by blu3prince, 2 weeks ago
1 255 2 weeks ago