Skip to content

Commit 9928f48

Browse files
committed
no follow for noindex pages / remove alternate for noindex pages
1 parent cc774eb commit 9928f48

5 files changed

Lines changed: 24 additions & 18 deletions

File tree

SD.WEB/Layout/FooterComponent.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ else if (AppStateStatic.Breakpoint > Breakpoint.Sm) //other bigger devices
1919
Company
2020
</MudText>
2121
</MudListSubheader>
22-
<MudListItem Text="About us" Href=@($"/{Culture}/company/about-us") Class="py-0" Disabled="_blockedActions" />
22+
<MudListItem Text="About us" Href=@($"/{Culture}/company/about-us") Class="py-0" Disabled="_blockedActions" rel="nofollow" />
2323
<MudListItem Text="Website" Href="https://www.drma-tech.com" Target="_blank" rel="noopener" Class="py-0" />
2424
</MudList>
2525
</MudItem>
@@ -69,7 +69,7 @@ else if (AppStateStatic.Breakpoint > Breakpoint.Sm) //other bigger devices
6969
</MudListItem>
7070
}
7171
}
72-
<MudListItem Href=@($"/{Culture}/help#get-the-app") Class="py-0">
72+
<MudListItem Href=@($"/{Culture}/help#get-the-app") Class="py-0" rel="nofollow">
7373
<ChildContent>
7474
<MudIcon Icon="@Icons.Material.Filled.Apps" Class="ma-0 me-1" Style="vertical-align: middle;" />
7575
More
@@ -84,9 +84,9 @@ else if (AppStateStatic.Breakpoint > Breakpoint.Sm) //other bigger devices
8484
Support
8585
</MudText>
8686
</MudListSubheader>
87-
<MudListItem Text="Help Center" Href=@($"/{Culture}/help") Class="py-0" Disabled="_blockedActions" />
88-
<MudListItem Text="Contact" Href="mailto:support@streamingdiscovery.com" Class="py-0" />
89-
<MudListItem Text="@Translations.Title.FAQ" Href=@($"/{Culture}/help/faq") Class="py-0" Disabled="_blockedActions" />
87+
<MudListItem Text="Help Center" Href=@($"/{Culture}/help") Class="py-0" Disabled="_blockedActions" rel="nofollow" />
88+
<MudListItem Text="Contact" Href="mailto:support@streamingdiscovery.com" Class="py-0" rel="nofollow" />
89+
<MudListItem Text="@Translations.Title.FAQ" Href=@($"/{Culture}/help/faq") Class="py-0" Disabled="_blockedActions" rel="nofollow" />
9090
<MudListItem Text="Compare" Href=@($"/{Culture}/compare") Class="py-0" Disabled="_blockedActions" />
9191
</MudList>
9292
</MudItem>

SD.WEB/Layout/HeadLayout.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
<MudNavLink Icon="@Icons.Material.Filled.Settings" OnClick="@OpenConfigurations">
106106
Settings
107107
</MudNavLink>
108-
<MudNavLink Icon="@Icons.Material.Filled.HelpCenter" Href=@($"/{Culture}/help")>
108+
<MudNavLink Icon="@Icons.Material.Filled.HelpCenter" Href=@($"/{Culture}/help") rel="nofollow">
109109
Help Center
110110
</MudNavLink>
111111

SD.WEB/Modules/Company/AboutUs.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</div>
4040
<div class="support-section">
4141
<h2>6. Contato</h2>
42-
<p>Se você tiver dúvidas, feedback ou apenas quiser dizer olá, visite nossa <a href=@($"/{Culture}/help")>página de suporte</a> ou utilize as ferramentas de contato na plataforma.</p>
42+
<p>Se você tiver dúvidas, feedback ou apenas quiser dizer olá, visite nossa <a href=@($"/{Culture}/help") rel="nofollow">página de suporte</a> ou utilize as ferramentas de contato na plataforma.</p>
4343
</div>
4444
<div class="support-footer">
4545
<p>Última atualização: 31 de março de 2026</p>
@@ -80,7 +80,7 @@
8080
</div>
8181
<div class="support-section">
8282
<h2>6. Contacto</h2>
83-
<p>Si tienes preguntas, comentarios o simplemente quieres saludar, puedes visitar nuestra <a href=@($"/{Culture}/help")>página de soporte</a> o usar las herramientas de contacto en la plataforma.</p>
83+
<p>Si tienes preguntas, comentarios o simplemente quieres saludar, puedes visitar nuestra <a href=@($"/{Culture}/help") rel="nofollow">página de soporte</a> o usar las herramientas de contacto en la plataforma.</p>
8484
</div>
8585
<div class="support-footer">
8686
<pltima actualización: 31 de marzo de 2026</p>
@@ -121,7 +121,7 @@
121121
</div>
122122
<div class="support-section">
123123
<h2>6. Contact</h2>
124-
<p>If you have questions, feedback, or just want to say hi, you can visit our <a href=@($"/{Culture}/help")>support page</a> or use the contact tools on the platform.</p>
124+
<p>If you have questions, feedback, or just want to say hi, you can visit our <a href=@($"/{Culture}/help") rel="nofollow">support page</a> or use the contact tools on the platform.</p>
125125
</div>
126126
<div class="support-footer">
127127
<p>Last updated: March 31, 2026</p>

SD.WEB/Modules/Help/HelpCenter.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</MudButton>
3030
</MudItem>
3131
<MudItem xs="12" sm="6" md="4" lg="3">
32-
<MudButton Variant="Variant.Filled" FullWidth="true" Href=@($"/{Culture}/help/faq")>
32+
<MudButton Variant="Variant.Filled" FullWidth="true" Href=@($"/{Culture}/help/faq") rel="nofollow">
3333
<MudIcon Class="me-2" Icon="@Icons.Material.Filled.Chat"></MudIcon>
3434
Browse FAQ
3535
</MudButton>
@@ -75,7 +75,7 @@
7575
@foreach (var lang in Enum.GetValues<AppLanguage>().Where(p => AppStateStatic.SitemapTranslations.Contains(p.ToString())))
7676
{
7777
<MudItem xs="12" sm="6" md="4" lg="3">
78-
<MudButton Variant="Variant.Filled" FullWidth="true" Href="@($"/{lang.ToString()}/help")" OnClick="@(() => Navigation.NavigateTo($"/{lang.ToString()}/help", true))">
78+
<MudButton Variant="Variant.Filled" FullWidth="true" Href="@($"/{lang.ToString()}/help")" OnClick="@(() => Navigation.NavigateTo($"/{lang.ToString()}/help", true))" Rel="nofollow">
7979
<MudIcon Class="me-2" Icon="@Icons.Material.Filled.Translate"></MudIcon>
8080
@lang.GetName()
8181
</MudButton>
@@ -155,13 +155,13 @@
155155
<BodyFragment>
156156
<MudGrid Spacing="@Css.SpaceSmall">
157157
<MudItem xs="12" sm="6" md="4" lg="3">
158-
<MudButton Variant="Variant.Filled" FullWidth="true" Href=@($"/{Culture}/company/about-us")>
158+
<MudButton Variant="Variant.Filled" FullWidth="true" Href=@($"/{Culture}/company/about-us") rel="nofollow">
159159
<MudIcon Class="me-2" Icon="@Icons.Material.Filled.Business"></MudIcon>
160160
About us
161161
</MudButton>
162162
</MudItem>
163163
<MudItem xs="12" sm="6" md="4" lg="3">
164-
<MudButton Variant="Variant.Filled" FullWidth="true" Href="mailto:contact@drma-tech.com">
164+
<MudButton Variant="Variant.Filled" FullWidth="true" Href="mailto:contact@drma-tech.com" rel="nofollow">
165165
<MudIcon Class="me-2" Icon="@Icons.Material.Filled.Email"></MudIcon>
166166
Contact us
167167
</MudButton>

SD.WEB/Shared/HeadComponent.razor

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,23 @@
2020
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
2121

2222
<!-- hreflang -->
23-
@foreach (var lang in AppStateStatic.SitemapTranslations)
23+
@if (Index)
2424
{
25-
<link rel="alternate" href="@GetUrlForLanguage(lang)" hreflang="@lang" />
25+
foreach (var lang in AppStateStatic.SitemapTranslations)
26+
{
27+
<link rel="alternate" href="@GetUrlForLanguage(lang)" hreflang="@lang" />
28+
}
2629
}
2730

2831
<!-- x-default -->
29-
@if (AppStateStatic.SitemapTranslations.Length > 0)
32+
@if (Index)
3033
{
31-
<link rel="alternate" href="@GetUrlForLanguage("en")" hreflang="x-default" />
34+
if (AppStateStatic.SitemapTranslations.Length > 0)
35+
{
36+
<link rel="alternate" href="@GetUrlForLanguage("en")" hreflang="x-default" />
37+
}
3238
}
33-
39+
3440
@if (Shared)
3541
{
3642
<link rel="image_src" href="@ImageUrl">

0 commit comments

Comments
 (0)