Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Slug-relative link

Solved by andrii burkatskyi View solution

Started by andrii burkatskyi 8 years ago · 1 replies · 718 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 Marcel, 5 days ago
0 85 5 days ago
Support · by JakobDB, 6 days ago
1 91 6 days ago
Support · by ramenos, 7 days ago
3 103 6 days ago
Support · by gravinator, 2 weeks ago
3 229 1 week ago
Support · by Roger Parkinson, 2 weeks ago
3 308 2 weeks ago