Forum OpenACS Q&A: Re: Different image and css path with SSL?

Collapse
Posted by Torben Brosten on
I've noticed a similar a problem with the images not showing with SSL for 4.6.3d (from CVS):

1. on the register page via https (when not logged in)[1], and

2. when using ecommerce with 4.6.3, when at a shopping basket page (https) and then choosing one of the links generated by @context_bar@.

For case 2, from what I understand of ad_context_bar, *all* links in the context bar list are adapted to http or https depending on the connection type for the current page. The problem is that security configuration does not permit pages or content normally accessible via http to be viewed via https[2].

I can't find anything on modifying ad_context_bar to correct this, but I think a regsub -all changing https to http should do it; this hopefully will allow the system to redirect to https if required.

Has the context_bar been upated for 5.0 to adapt (or is this a non-issue for 5.0)?

Is there a function that lets a page process know whether it is accessed via https or http? ad_port?

1. https://servername:8443/register/?return%5furl=%2f
2. https://openacs.org/forums/message-view?message_id=33419