cms
cms copied to clipboard
Taxonomy page should throw a 404
Bug description
I've got a multi-site with a taxonomy. The taxonomy index page is reachable for all sites, no matter if the site was configured in the taxonomy's config. I expect the taxonomy index page to throw a 404 for all sites that haven't been configured.
How to reproduce
I prepared and configured a multi-site for you:
- Clone this repo: https://github.com/aerni/taxonomy-multi-site
- Visit the localized taxonomy index pages at
/de/tagsand/de/articles/tags - Both pages work BUT they should throw a 404 because the German site hasn't been added to the sites config of the taxonomy
Logs
No response
Environment
Environment
Application Name: Statamic
Laravel Version: 9.22.1
PHP Version: 8.1.6
Composer Version: 2.3.5
Environment: local
Debug Mode: ENABLED
URL: taxonomy-multi-site.test
Maintenance Mode: OFF
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: statamic
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file
Statamic
Addons: 0
Antlers: regex
Version: 3.3.25 PRO
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
runtime (new)
Additional details
No response