Create a page with a querystring in the URL for the menu
When creating a page in the Administration area, the url setting does not allow me to include a querystring. However, I need the automatically generated menu item to include a querystring parameter in the link to pass to the user control on the resulting page.
For example...I'm creating pages that list our Report Requests by type. So the menu and corresponding links would look like this:
Requests
All Requests (/requests/all-requests)
My Requests (/requests/my-requests?queue=My Requests)
Unassigned Requests (/requests/unassigned-requests?queue=Unassigned)
All 3 of these pages use the same user control, there is just logic in the user control to filter the resulting grid based on the querystring parameter.
Is there a way to specify a querystring when I'm letting Sitefinity generate my menu objects for me? Or is there another option you can recommend to accomplish this? Thanks.
Hello Philip,
The current implementation of pages does not allow you to enter query string directly in the url of a page and we do not have an option for additional url. This is something that we are going to discuss and see how could be implemented. The simplest way to append some query string to the url is using another user control with a single public property where you can set the QueryString on page. The control will add the QueryString with Response.Redirect to the page inside Load event. I agree that this is not a good solution, because there will be always two requests to the page, but this is the simplest way to achieve your goal.
Best wishes,
Ivan Dimitrov
the Telerik team