Skip to content

Commit

Permalink
Merge pull request #369 from moslem7026/Issue-340
Browse files Browse the repository at this point in the history
Fix Not add Culture Code in URL Provider
  • Loading branch information
Will Strohl authored Sep 30, 2021
2 parents 8dfc778 + 3871206 commit 4c6796f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ public override string TransformFriendlyUrlToQueryString(string[] urlParms, int
FriendlyUrlOptions options, string cultureCode, PortalAliasInfo portalAlias, ref List<string> messages,
out int status, out string location)
{
if (string.IsNullOrEmpty(cultureCode))
{
var PortalSetting = PortalController.Instance.GetPortal(portalId);
cultureCode = PortalSetting.CultureCode;
}
var result = string.Empty;
status = 200; //OK
location = null; //no redirect location
Expand Down

0 comments on commit 4c6796f

Please sign in to comment.