Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Site.yaml routes taxonomy not work

Solved by pamtbaau View solution

Started by Mat 3 years ago · 2 replies · 338 views
3 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?

3 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.

3 years ago

@pamtbaau always save me! Thanks!

now works perfect

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 85 13 hours ago
General · by pamtbaau, 18 hours ago
1 60 18 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 350 5 days ago
General · by Duc , 6 days ago
3 44 5 days ago