Today, someone in the group asked the question:
Problem Description:
Springmvc+hibernate do a project, with Google Browser all normal, with IE but because the return path problem, reported 404, heroes are what situation? When using IE, the path to the address bar will be one or more layers. In JS with Window.location.href jump, with the relative path, Google is in the project name, ie but one more layer.
Answer:
In fact, this is no matter IE and chrome. In fact, including Firefox. This is caused by the browser's resolution of the relative path.
In the project with Window.location to do the jump,
Jump in @ie to start with current path
Jump in the @ff/chrome to start with the root directory
So the best way is to start with the root directory. Like what:
Window.location,href= "Path/image";
Change to: window.location,href= "/web/path/image";
Also note:
1, IE support window.location,href (URL), other browsers do not support. Unified use: Window.location,href= "/web/path/image";
2, the above question also window.open existence.