A lot of CMSen play fast and loose with the directory structure of the server, using a virtual path to signal programming intent rather than a literal path to a resource. This can play havoc with an application like Freeway, which is designed around literal directory structure.
Left to its own devices, Freeway will always generate “relative” paths in the HTML it codes into links and image references and so forth. These will always start from the page they are on as a reference point. If they are navigating “down the tree”, then they will only include the part of the URL that needs to be appended to the current path to get to the destination. If the destination is “across the tree”, then you will see some “up and over” notation, using double-dots and slashes, like this:
<a href="../../foo/bar/baz.html">Baz</a>
The Apache Web server will merge this with the base path of the page containing this direction, and compute the absolute URL from the result.
I have built a fair number of CMSen around Freeway, but without knowing the specifics of yours, I can’t give you much more guidance than the above. If your CMS uses “pretty URLs” instead of querystring directives, then it’s a fair bet that it is forcing the URL for any page to terminate at the first slash after the domain name. Everything after that is all made up. This is directly opposed to the way that Apache and a static site want to work, so your CMS will have to provide a means of re-mapping requests for non-virtual resources back to their actual directory path.
If you provide some more details about your specific CMS, I may be able to help you further.
Walter
On Apr 29, 2020, at 4:09 AM, ummedia email@hidden wrote:
Im updating the CMS software on a Freeway 5 document and am having trouble with linking the resources I thought I could control what the link was for the resources when the html was written, say for instance relative rather than a full link. I’ve looked everywhere but its got me stumped. Any old timers give me a clue please.
thank you Adam
freewaytalk mailing list
email@hidden
Update your subscriptions at:
Information for existing FreewayTalk / Groups.io users - Site Feedback - Softpress Talk
freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options