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 · 620 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 Paul Hodges, 6 days ago
13 219 7 hours ago
Support · by gtx, 4 days ago
2 127 3 days ago
Support · by Anna, 2 weeks ago
9 300 3 days ago
Support · by TomW, 1 week ago
4 165 6 days ago
Support · by Anna, 1 week ago
4 173 1 week ago