Skip to content
pinegrow.com
Docs menu

Testing the new approach to addressing local files in internal web-server

Use nice URLs like http://<server_url>/index.html when working with local projects.

The latest Pinegrow Web Editor release 5.973 added the setting for changing how the files are addressed when served by Pinegrow’s internal web-server.

Until now, local files were addressed with URLs like http://<server_url>/file://Users/Me/Projects/ABC/index.html

This can cause issues with resources that use root-relative URLs, for example <img src="/images/img.png">.

The new approach is to address files from the local project with URLs that are relative to the project folder.

For example:
http://<server_url>/index.html

Under the hood, Pinegrow maps this URL to the file
<path of the current project>/index.html

At the moment this option needs to be explicitly enabled in Settings, in Internal Web Server & Proxy settings section:

Pinegrow Settings dialog for the internal web server, with hostname 127.0.0.1, port 40020 and Serve local projects from the server root checked.

The same nice URLs are now also used when previewing documents in the browser:

Browser window with the address 127.0.0.1:40020/index.html beside a Pinegrow intro page, with an arrow pointing to the address bar.

The old mode is used by default, unless you activate the Root URLs option in Settings.

Root URLs only work with local files when their parent folder is opened as project in Pinegrow.

After a testing period, this will become the default approach to addressing files in Pinegrow PRO and >.

This feature will remain unchanged in Pinegrow Standard.