Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
frontend ruleP2universalStack: general
seometahtml
Remove static head meta when it is set dynamically
If title/description are injected per-route at runtime, leaving generic static ones in the HTML shell can override or confuse crawlers; drop them.
PR: hegnar-bellsheep-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codehtml
| 1 | <head> |
| 2 | <meta name="description" content="Generic site description" /> <!-- also set per route --> |
| 3 | </head> |
Explanation (EN)
Objašnjenje (HR)
Good example
New codehtml
| 1 | <head> |
| 2 | <!-- description injected per route at render time --> |
| 3 | </head> |
Explanation (EN)
Objašnjenje (HR)