[opencms-dev] URL generation : Offline Vs Guest access
Andras Balogh
abalogh at gmail.com
Mon Dec 12 10:22:21 CET 2005
Hello,
shishank.mathur at wipro.com wrote:
> Hi,
>
> I am using OpenCms 6_0_2 version.
>
> Looking at the demopages site, if I click preview from Offline site I
> see the URL as
>
> http://<server>:<port>/opencms/opencms/sites/default/demopages/index.html
> <http://%3Cserver%3E:%3Cport%3E/opencms/opencms/sites/default/demopages/index.html>
You are not working correctly in the Offline project, you should edit
and preview the pages
ALWAYS by having selected "/sites/default" in the site dropdown on top
and not "/".
The only case you need to work in "/" if you want to create or edit
content in /system/*
>
> If I access the site as guest, the URL is
>
> http://<server>:<port>/opencms/opencms/demopages/
> <http://%3Cserver%3E:%3Cport%3E/opencms/opencms/demopages/>
>
> and the internal urls within the demo site maintain the same initial
> url respectively.
>
> Would like to know how the URL is generated for the links on the page
> so that it maintains the initial context based on whether clinked in
> offline project or as guest user.
>
> Awaiting an early reply.
>
> Cheers,
> Shishank
Best regards,
Andras
More information about the opencms-dev
mailing list