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

Site.yaml routes taxonomy not work

Solved by pamtbaau View solution

Started by Mat 4 years ago · 2 replies · 517 views
4 years ago

Hello!

if I edit site.yaml adding some routes, the routes who use a taxonomy filter are ignored, 404 error.

for example:

TXT
taxonomies:
  - category
TXT
routes: 
    /tracked-carrier: 'category:tracked-carrier'

not work
if I place manually the address... https://mysite.com/category:tracked-carrier works perfect
some idea?

4 years ago Solution

@msa, Not sure if it fits your needs, but using redirects it will work:

The following config in /user/config/site.yaml on a default Blog Site skeleton...

TXT
redirects:
    /mushroom: /tag:mushroom

...will show a list of blog items with tag mushroom.

4 years ago

@pamtbaau always save me! Thanks!

now works perfect

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 4 days ago
2 86 15 hours ago
General · by Old Man Umby, 2 days ago
1 60 2 days ago
General · by Sebastian, 4 days ago
1 81 4 days ago
General · by Andy Miller, 2 weeks ago
0 215 2 weeks ago
General · by ready-4-IT, 6 months ago
1 716 3 weeks ago