HTML: File reference problems when using <base> tag
The IDE ignores the <base> tag it seems. I tried manually marking the containing directory as a Resources Root but the problem persists. Any way to make these warnings actually work?
Please sign in to leave a comment.
WebStorm resolves paths either relative to current file or relative to the project/resource roots. Marking the directory where the 'catalog' folder is located as Resource root should help
Yes, <base href="/"> works, but not <base href=".."> which is what I need.
Not sure I understand what you are talking about... WebStorm itself DOES NOT use <base> for paths resolving - as I have already mentioned, paths are resolved either relative to current file or relative to the project/resource roots.
<base href=".."> tells the browser to resolve paths relative to file parent dir, right? Marking this parent dir as Resource root should do the thing
Here's the difference I'm seeing. The parent directory icdb_dev is marked as a resource root.
With <base href="..">
With absolute path: