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?

4 comments

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

 

0

Yes, <base href="/"> works, but not <base href=".."> which is what I need.

0

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

0

Here's the difference I'm seeing. The parent directory icdb_dev is marked as a resource root.

With <base href="..">

With absolute path:

0

Please sign in to leave a comment.