Skip to content

Commit

Permalink
Don't Encode Text Parts (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zifah authored Sep 2, 2024
1 parent 639648d commit d2795de
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Website/Pages/SingleEntry.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ public async Task<IActionResult> OnGet(string nameEntry)
return Redirect($"/entries?q={HttpUtility.UrlEncode(nameEntry)}");
}

var encodedName = HttpUtility.UrlEncode(name.Name);
ViewData["SocialTitle"] = encodedName;
ViewData["SocialPath"] = $"/entries/{encodedName}";
ViewData["SocialDescription"] = HttpUtility.UrlEncode(name.Meaning);
ViewData["SocialTitle"] = name.Name;
ViewData["SocialPath"] = $"/entries/{HttpUtility.UrlEncode(name.Name)}";
ViewData["SocialDescription"] = name.Meaning;

Name = name;
Letters = YorubaAlphabetService.YorubaAlphabet;
Expand Down

0 comments on commit d2795de

Please sign in to comment.