From 7d141385ed1e6b4c20af6368b4130ab01660ed9f Mon Sep 17 00:00:00 2001 From: Rob Earlam Date: Tue, 16 Apr 2024 12:05:35 +1000 Subject: [PATCH] Reverted change to name-based URLs for the MVP dir --- .../rendering/Models/Directory/DirectoryResultViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Feature/People/rendering/Models/Directory/DirectoryResultViewModel.cs b/src/Feature/People/rendering/Models/Directory/DirectoryResultViewModel.cs index c3b9f172..463bbb06 100644 --- a/src/Feature/People/rendering/Models/Directory/DirectoryResultViewModel.cs +++ b/src/Feature/People/rendering/Models/Directory/DirectoryResultViewModel.cs @@ -32,7 +32,7 @@ public static DirectoryResultViewModel FromMvpProfile(MvpProfile profile, Uri? p result.Year = last.Application.Selection.Year.ToString(); if (pageUri != null && !string.IsNullOrWhiteSpace(result.Name)) { - result.ProfileUri = pageUri.AddSegment(result.Name.EncodeSpaces()); + result.ProfileUri = pageUri.AddQueryString("id", profile.Id.ToString("N")); } return result;