We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"NavigationRouteConfigurationExtensions" generate incorrect url when a action in HomeController (different from index) is added.
File NavigationRouteConfigurationExtensions, method CreateUrl.
Patch:
public static string CreateUrl(string actionName, string controllerName) { if (controllerName.Equals("home", StringComparison.CurrentCultureIgnoreCase)) { if (actionName.Equals("index", StringComparison.CurrentCultureIgnoreCase)) { return ""; } //else //{ // return actionName.ToLower(); <-- Incorrect url for home controller action //} }
return controllerName.ToLower() + "/" + actionName.ToLower(); }
The text was updated successfully, but these errors were encountered:
I dont know why I changed this. :) I will update the unit test and push a change out
Eric Hexter
blog | http://Hex.LosTechies.com info | http://www.linkedin.com/in/erichexter
On Thu, Jan 31, 2013 at 9:34 AM, Sergio [email protected] wrote:
"NavigationRouteConfigurationExtensions" generate incorrect url when a action in HomeController (different from index) is added. File NavigationRouteConfigurationExtensions, method CreateUrl. Patch: public static string CreateUrl(string actionName, string controllerName) { if (controllerName.Equals("home", StringComparison.CurrentCultureIgnoreCase)) { if (actionName.Equals("index", StringComparison.CurrentCultureIgnoreCase)) { return ""; } //else //{ // return actionName.ToLower(); <-- Incorrect url for home controller action //} } return controllerName.ToLower() + "/" + actionName.ToLower(); } — Reply to this email directly or view it on GitHubhttps://github.com//issues/64.
— Reply to this email directly or view it on GitHubhttps://github.com//issues/64.
Sorry, something went wrong.
Hi
Has this issue been fixed? I know when I use action link and include the the controller name it shows the url with ?length5
No branches or pull requests
"NavigationRouteConfigurationExtensions" generate incorrect url when a action in HomeController (different from index) is added.
File NavigationRouteConfigurationExtensions, method CreateUrl.
Patch:
public static string CreateUrl(string actionName, string controllerName)
{
if (controllerName.Equals("home", StringComparison.CurrentCultureIgnoreCase))
{
if (actionName.Equals("index", StringComparison.CurrentCultureIgnoreCase))
{
return "";
}
//else
//{
// return actionName.ToLower(); <-- Incorrect url for home controller action
//}
}
The text was updated successfully, but these errors were encountered: