I want to make an URL like this
www.site.com/?q=house
But when I open the site I get
www.site.com/#
after javascript
window.location.hash = "q=house";
URL looks like
www.site.com/#q=house
Where the hash coming from? How to remove it from the url?
My RouteConfig if it is important
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
Using MVC 5.