Ghost/ghost/core/test/e2e-frontend
Chris Raible c0471f0c28
🐛 Fixed frontend routing prioritizing collections over built in routes (#20765)
ref
https://linear.app/tryghost/issue/ONC-242/frontend-routing-prioritizes-collections-over-taxonomies

- Under a fairly specific edge case with a collection route that conflicts with a default, built-in route ("taxonomy" — like tags, authors, etc), the frontend routing would prioritize the collection over the taxonomy.

- For example, with the following in a custom `routes.yaml`:
```
collections:
  /:
    permalink: /{primary_tag}/{slug}/
    template: index
```

If a post exists with the same slug as its primary tag's slug, the frontend routing would redirect the `/tag/{slug}/` route to the post in the collection, rather than serving the tag itself.

- This commit changes that, so if a collection's route conflicts with e.g. a `/tag/{slug}/` default route, Ghost will still return the built in route, rather than the collection.
2024-08-21 13:45:59 -07:00
..
helpers
advanced_url_config.test.js
custom_routes.test.js 🐛 Fixed frontend routing prioritizing collections over built in routes (#20765) 2024-08-21 13:45:59 -07:00
default_routes.test.js 🐛 Fixed Content-Type for RSS feed (#20670) 2024-08-07 12:09:54 +02:00
email_routes.test.js
member_stats.test.js
members.test.js 🔒 Added uuid verification to member endpoints not requiring a session 2024-08-20 16:24:02 +02:00
middleware.test.js 🐛 Fixed redundant member data loading for static assets (#20031) 2024-05-20 13:55:45 +08:00
preview_routes.test.js
static-files.test.js