I am facing one issue regarding to my SharePoint site URL. When I am trying to redirect my page on the button click the page is being redirected but it's URL is like
The issue I am facing because of the above URL is my Menu Template is not working.
And I want URL like
When I manually type the above URL menu worked. I don't know why. What is the issue.
The code I am using to redirect the URL is:
string url = SPContext.Current.Web.Url; SPUtility.Redirect(url + "/_layouts/15/MyList/MyPage.aspx?List=" + Request.QueryString[ListField], SPRedirectFlags.UseSource | SPRedirectFlags.Trusted, HttpContext.Current);
Can anyone help me to solve this issue?
Any help will be appreciated..!