HomeWebsites (Web Designer only)

Topics about functions unique to StudioLine Web Designer, such as Page Editor and site management

Dynamic menu uses wrong link 

uligrepel
uligrepel
Posts: 3


5/8/2017
uligrepel
uligrepel
Posts: 3
Hi,

long time, no hear... I've recently been working on a long time (i.e. 10 years old) statical web site project again, and I'm having trouble with dynamic menus: 10 years ago they just worked fine, now, probably after conversion to the new dynamic menu technique, they don't. The link is always referring to the page with the filename "default.htm", even though the publication profile (and the rendered page) is using the filename "index.html".

With Chrome, clicking on a menu link gives you the local equivalent of a 404 page, with Edge, you'll get a white page only.

Fixing the link from "default.htm" to "index.html" in the generated JavaScript files (e.g. slm_388.js) helps, however I'd prefer not having to do that manually ;-)
edited by uligrepel on 08.05.2017
0 link
Andy Schmidt
Andy Schmidt
Administrator
Posts: 111


5/12/2017
Andy Schmidt
Andy Schmidt
Administrator
Posts: 111
This issue is specific to publishing the HTML pages to file (DVD) rather than through FTP. In this case, the name for the default document, "default.htm", carried over from the standard publishing profile for this project, instead of from the specific publishing profile.
As a temporary work-around one could temporarily change the setting of the standard publishing profile from "default.htm" to "index.html" prior to publishing the DVD.
Note: The "default document" name in a Publishing Profile is meant to match the setting on the target web server. It would be the job of the web server, to redirect a request for a non-specific HTTP URL (one lacking an explicit document name), to a fully qualified URL (which includes one of the default document names configured for that web site).
As is apparent, the concept of a "default document" doesn't apply with offline viewing, as no web server is involved. In this context, file system requests are always explicitly for a particular file, no matter the name (default.htm, index.html, or any other).

edited by Andy Schmidt on 5/12/2017
edited by Andy Schmidt on 5/12/2017
+1 link






Powered by Jitbit Forum 8.3.8.0 © 2006-2013 Jitbit Software