I have noticed that Webflow Exported Codes when it comes to links/href falls below standard and causing a lot of issue on my server.
Urls to webpage is expected to have a “/” before the name of the file. Webflow implementation is inconsistence and it is giving me hell on post export which I shouldn’t have:
My Suggestion:
All export in the root should have a “/” e.g : href=“/mypagelink.html” not href=“mypagelink.html” or this href=“mypagelink” as I found in the code generated by Webflow.
hi @topelovely, our export uses relative paths. If you want, you can set the BASE tag in your site hosting tab, which will set the url that the links on the page should be relative to.
You can also enter the direct path to the url in the URL field of link settings, by prefacing the slash in your link with a back-tick character when you enter the link in the URL field. This will allow you to put in any form of url there:
`/index.html
I hope that helps, if not, let me know and I am happy to further assist. Dave
Are you i can saying i can do this: Web Hosting, Domain Name Registration - MyDomain.com? Would this mean that all links would have the forward slash (“/” e.g /contact.html ) before the name of the page instead of just page of the name or relative path (“…/” e.g …/contact.html) ?
Hi @topelovely, thanks for your question. Yes, if you enter the link as /page.html, it will also be exported with the slash, and not just index.html.
The export will look like: href=“/index.html” and will look like that for whatever links you add the forward slash to. I hope this helps, let me know if any issues Cheers, Dave
Could try updating that, save changes and then re-export your site? With the base tag set, you would not use a slash before your links. All links on the page should be relative to the url specified in the base tag.
Could you try that and see if it helps ?
The other thing, if you do not use the base tag, then you would have to modify the paths to the css files and image files, those are also relative to the base tag url. I look forward to your result. Dave