Skip to content

fix: remove orphaned taxonomy template extending deleted category view#436

Merged
oxyc merged 1 commit into
masterfrom
fix/taxonomy-missing-category-view
Jun 5, 2026
Merged

fix: remove orphaned taxonomy template extending deleted category view#436
oxyc merged 1 commit into
masterfrom
fix/taxonomy-missing-category-view

Conversation

@oxyc

@oxyc oxyc commented Jun 5, 2026

Copy link
Copy Markdown
Member

Problem

taxonomy.blade.php contains only @extends('category'), but category.blade.php no longer exists in this theme — it was removed when category/tag/taxonomy archives were consolidated into archive.blade.php (and its Archive view composer). Any custom-taxonomy archive request renders taxonomy.blade.php, Blade fails to resolve the missing category view, and it throws InvalidArgumentException: View [category] not found — an uncaught exception that produces an error page.

This is the same bug fixed in medihealth (generoi/medihealth#42), found by sweeping GDS-theme repos for the same signature.

Fix

Delete taxonomy.blade.php. Taxonomy requests then fall through the Sage template hierarchy to archive.blade.php, whose Archive composer (app/View/Composers/Archive.php) already handles is_tax() || is_category() || is_tag() and supplies the required $content/query data.

Note: repointing to @extends('archive') is not used because the Archive composer binds to the archive/home view names; letting the request resolve to the archive view directly ensures the composer runs.

Verification

  • Confirmed category.blade.php is absent and archive.blade.php + the Archive composer (handling is_tax/is_category/is_tag) are present in this repo.

🤖 Generated with Claude Code

taxonomy.blade.php extended a 'category' view that no longer exists in
this theme; category/tag/taxonomy archives were consolidated into
archive.blade.php and its Archive view composer. Any taxonomy archive
request rendered taxonomy.blade.php, failed to resolve the missing view,
and threw 'InvalidArgumentException: View [category] not found',
producing an error page.

Deleting taxonomy.blade.php lets taxonomy requests fall through the Sage
template hierarchy to archive.blade.php, whose Archive composer already
handles is_tax()/is_category()/is_tag() and supplies the required data.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@oxyc oxyc merged commit b67642a into master Jun 5, 2026
1 check failed
@oxyc oxyc deleted the fix/taxonomy-missing-category-view branch June 5, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant