Try our conversational search powered by Generative AI!

Way to allow HierarchicalCatalogPartialRouter to set query paramaters

Vote:
 

Hello, 

Like many others I'm sure I am upgrading a site to 14, but am running into an issue where there doesn't seem to be a way to set query paramaters (?p=3432&code=324) in GetPartialVirtualPath which we have to support for existing reasons. This worked fine in 13.

So in 13 GetPartialVirtualPath

seriesRouteData.PartialVirtualPath = "path?p=stuff&t=otherstuff"

will work fine, but the same code in 14 generates a path that has a '/' appended, 

Is there anyway I can stop that appending? 

Thanks 

#303507
Edited, Jun 14, 2023 14:30
Vote:
 

Hi Scott,

This is going to sound a bit stupid, is your solution setup to append a traling slash or not?

https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.routing.routeoptions.appendtrailingslash?view=aspnetcore-7.0

(Mind is blown we have 2 Scott Reeds in the community!).

Paul

#303557
Jun 15, 2023 9:21
Vote:
 

Yeah it is a little crazy to have multiples. 

I did try to force off the append trailing slash, but it doesn't seem to have made a difference. 

#303835
Jun 20, 2023 16:54
Vote:
 

Hey Scott,

I don't suppose you could share the code for your PartialRouter?

Paul

#303884
Jun 21, 2023 10:21
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.