feat(public): add About Us page
Adds a public "درباره ما" page at /درباره-ما reusing the landing theme
(same webpack entry, header, footer, registration modal). Section ids
match the header anchors so the nav works on this page too.
The explicit route takes precedence over LandingController's catch-all
/{slug}, which is registered with priority -10.
Also links it from the header nav and footer quick links, and lists it
in sitemap.xml.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -84,9 +84,9 @@ class LandingPageTest extends WebTestCase
|
||||
$xml = $this->html('/sitemap.xml');
|
||||
$doc = new \SimpleXMLElement($xml);
|
||||
|
||||
// خانه + هر صفحهٔ فرود. عدد از خودِ رجیستری میآید تا افزودن خوشهٔ کلیدواژهٔ
|
||||
// تازه این تست را نشکند، ولی جاافتادن یک صفحه از sitemap هنوز قرمز شود.
|
||||
self::assertCount(1 + count($this->registry->all()), $doc->url);
|
||||
// خانه + دربارهٔ ما + هر صفحهٔ فرود. عدد از خودِ رجیستری میآید تا افزودن خوشهٔ
|
||||
// کلیدواژهٔ تازه این تست را نشکند، ولی جاافتادن یک صفحه از sitemap هنوز قرمز شود.
|
||||
self::assertCount(2 + count($this->registry->all()), $doc->url);
|
||||
|
||||
foreach (array_keys($this->registry->all()) as $slug) {
|
||||
self::assertStringContainsString(rawurlencode($slug), $xml, "«{$slug}» در sitemap نیست");
|
||||
|
||||
Reference in New Issue
Block a user