Reputation: 1449
Here's the setup: I'm using the latest version of IE11 (11.0.9600.18952IS I just updated today). I have a .NET application using AngularJs 1.5. In my main view, I set the base:
<%-- resolves to "/" --%>
<base href="<%= Request.ApplicationPath %>" />
My image is on this relative path: DesktopModules/Module/Images/Image.png. This works in Chrome but not IE. I'm getting a "404 Not Found" error. I looked at the path that gets generated in my HTML and I see that a part of my sites URL has been added and that is breaking the path:
**en-us/Resources**/DesktopModules/Module/Images/Image.png
After an hour of researching with no results I was unable to fix this issue.
Upvotes: 1
Views: 1336
Reputation: 1449
The fix was to add "/" to the front of my relative path. I gave up on researching a fix and just played with the file path and this was it. Seems like such a simple fix. Somebody must have encountered this before. Hope this helps someone.
I changed this: DesktopModules/Module/Images/Image.png
To this: /DesktopModules/Module/Images/Image.png
Upvotes: 1