Pinegrow Community Support Forum

Root-relative links are broken in browser preview (404 - Not found)

I just downloaded Pinegrow 5.7, and today opened a project. When I click the ‘Preview page in browser’ button, everything looks fine, but if I click on an internal (root-relative) link, I get the following error:

404 - Not found - File /hyperlinker/download/ can not be read by Pinegrow: Error: ENOENT: no such file or directory, open '/hyperlinker/download/'

The problem appears to be that the server is using the root directory of my Mac’s drive as the site root. i.e. in the address bar, the first URL looks something like this:

http://127.0.0.1:40000/file:///Users/kal/Documents/etc/etc/hyperlinker/index.html

I’m guessing it should look like this:

http://127.0.0.1:40000/hyperlinker/index.html

The project structure looks correct in Pinegrow’s Project panel, with the correct folder as the site root.

I don’t remember seeing this issue before. Am I doing something wrong, or is this a bug?

Anyone?

I tried opening the project in an older version of Pinegrow, but it did the same thing. Am I just imagining that root-relative links used to work??

Hi, anything similar to this?

Thanks, but no, different issue. I’m not using master pages, and the links are only broken when previewing in the browser. When published to the server, they are fine. In other words, the links are as they should be. It’s really the web preview feature that is ‘broken’.

Ah ok , I thought it may be related as I noticed both topics appeared around the same time.
OH well, I am sure they will get to the bottom of this.
Well done on noticing it and bringing attention to it.
I will keep an eye out for it.

Thanks @schpengle. I emailed the development team a few days ago, but haven’t heard back as yet. I’ll update this thread if/when I find out more.

1 Like