Project in subfolder - Cannot resolve directory.
So I have a project that will be host in subfolder "sub". In the Deployment configuration I've set the Web server root URL to myserver.com/ and the Web path on server to /sub. The project URL correctly shows as http://myserver.com/sub.
I can edit an HTML document and use the preview to launch http://myserver.com/sub/mydoc.html but if I reference an image in the project as /sub/image.png I get a warning in the editor that "/sub/image.png" can not be resolved.
I've seen several threads about similar type problems, but none that address this scenario.
Please sign in to leave a comment.
Please try marking the parent directory of 'sub' folder as Resource Root (Mark directory as/Resource Root in folder right-click menu). For example, if your structure is <project root>/app/sub, you need to mark 'app' folder as resource root
Thanks, that didn't work directly, but it did give me an idea to workaround the problem. So in my <project root> I added /sub. Then in my deployment settings I changed to Local Path to <project root>\sub and set the web path to be /sub. Now all is good. Thanks for help.