diff --git a/LearningHub.Nhs.WebUI/Views/Account/CreateAccountSearchRole.cshtml b/LearningHub.Nhs.WebUI/Views/Account/CreateAccountSearchRole.cshtml index e42fd6f45..af00e7ca5 100644 --- a/LearningHub.Nhs.WebUI/Views/Account/CreateAccountSearchRole.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Account/CreateAccountSearchRole.cshtml @@ -5,7 +5,8 @@ @{ ViewData["Title"] = "Role"; var errorHasOccurred = !ViewData.ModelState.IsValid; - var routeData = new Dictionary { { "CountryId", Context.Request.Query["CountryId"] } }; + string currentCountry = !string.IsNullOrWhiteSpace(Context.Request.Query["CountryId"]) ? Context.Request.Query["CountryId"] : Model.CountryId; + var routeData = new Dictionary { { "CountryId", currentCountry } }; } @section styles{