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:
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.
I’m a bit late on this one but I can confirm that we have not received / I don’t find any message from you on this particular topic. (I see 2 other discussions with you in our system, but nothing related to the present report).
So, can you please try again and contact us at email@example.com + send us your project folder so we can analyze the situation? Thanks.
heya! This seems to be the only post I can find related to this bug, but I have a solution for you! or, well for all of us here
if you have Python installed, “SimpleHTTPServer” does the trick
open a terminal, or command prompt in the “document root” or “webroot” or whichever you would like to call it, where the root of the website should be, and then just run
“python -m SimpleHTTPServer 40000”
the browser preview should properly fetch “http://127.0.0.1:40000/hyperlinker/index.html” because 127.0.0.1:40000 has an http server running with document root pointed to the base of the project!
I have to add, the built in “preview page” wont flow properly, because it’ll open on a new port, and not 40000, but at least you can preview with root relative links to not view the busted preview, I do hope pinegrow team fixes this simple bug, but until then, my workaround works! Pinegrow is way too good to drop over this
Thanks @Carbolemons! Not sure how much I’m going to be using Pinegrow on future projects, but I’ll surely give your workaround a go if I do. It’s at least good to know that the bug affects others, and that it’s not something unique to my system. (BTW, I never did hear back from support on this issue after resending the email.)
I’m really sorry for this situation but I just double checked the support inbox again and we never got your message about this particular topic, so the lack of answer which I deeply regret. (I suspect an overzealous spam filter somewhere between you and us).
In the mean time (since 5.7) some changes were done on this feature, did you try again?
I got up to version 5.91 before my upgrade license ran out. But the problem is exactly the same as I first described. The browser preview still uses the root directory of my Mac’s drive as the site root, which is what causes the problem.
I’ll leave the discussion there, as I’m not pursuing a fix for this anymore. If this behaviour isn’t something you’re able to reproduce, perhaps you could invite Carbolemons to help you with troubleshooting?
Top level is plain HTML.
sub-page folder contains an html page named “dashboard.html” in Bootstrap 4.
other-sub is contained within “sub-page” and contains an html page named “portfolio.html” in Foundation.
From the main page I can have a button that will take me to “dashboard.html” with a relative path