Absolute paths don't work using in-place server

The problem is simple - when I run a page it shows in the url box on my browser: localhost:63342/<ProjectName>
And when I use an absolute path (a url starting with '/' referring to my site root eg - /images/image.png) it doesn't work. I believe this because it's trying to load localhost:63342/images/image.png instead of localhost:63342/<ProjectName>/images/image.png
How do I get around this? (please don't tell me not to use absolute paths - they're useful)

1 comment
Comment actions Permalink

Hi there,

Please check comments in https://youtrack.jetbrains.com/issue/WEB-14350

It's possible to use <ProjectName>:63342/file instead of localhost:63342/<ProjectName>/file (by editing hosts file and specifying Deployment entry) -- your absolute URLs will work again.

0

Please sign in to leave a comment.