Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 708ba12

Browse files
committed
bug
1 parent 6eede2e commit 708ba12

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Frontend/Jp.UI.SSO/Views/Shared/_SelectLanguagePartial.cshtml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@using Microsoft.AspNetCore.Mvc.Localization
2-
32
@inject IViewLocalizer Localizer
43

54
<li class="nav-item dropdown">
@@ -10,10 +9,10 @@
109
<div class="dropdown-header text-center">
1110
<strong>@Localizer["Title-Available-Languages"]</strong>
1211
</div>
13-
<a asp-controller="Home" asp-action="SetLanguage" asp-route-culture="pt-BR" asp-route-returnUrl="@Context.Request.Path.ToString().Trim()" class="dropdown-item">
12+
<a asp-controller="Home" asp-action="SetLanguage" asp-route-culture="pt-BR" asp-route-returnUrl="@Context.Request.Path.ToString().Replace("/", "")" class="dropdown-item">
1413
<i class="flag-icon flag-icon-br"></i> @Localizer["Title-Português"]
1514
</a>
16-
<a asp-controller="Home" asp-action="SetLanguage" asp-route-culture="en" asp-route-returnUrl="@Context.Request.Path.ToString().Trim()" class="dropdown-item">
15+
<a asp-controller="Home" asp-action="SetLanguage" asp-route-culture="en" asp-route-returnUrl="@Context.Request.Path.ToString().Replace("/", "")" class="dropdown-item">
1716
<i class="flag-icon flag-icon-us"></i> @Localizer["Title-English"]
1817
</a>
1918
</div>

0 commit comments

Comments
 (0)