Forum OpenACS Q&A: Re: Subsite login redirect loop?

Collapse
Posted by Michael Steigman on
Thanks, Cathy. That was part of it - I allowed permissions to be inherited and blocked inheritance at the package level and that seemed to work ok. I'm running into similar infinite loop problems, however, if I try to prevent the public from viewing the first page. For example, if I throw an ad_maybe_redirect_for_registration in the index page, I get the same loop. Ditto for the following:
if {[ad_conn user_id] == 0} {
    ad_returnredirect "/register/"
}
Also tried "/intranet/register/index" (/intranet being the subsite node) and others for the redirect argument. The redirect to /register/ works fine from the applications but not from the home page. Why would that be?
Collapse
Posted by Bruno Mattarollo on
I am having this same problem using Camino 0.7 on mac for a recently upgraded to OpenACS 4.6.2/dotLRN 1.0 website. On the homepage it doesn't work. I have granted "Read" to "The Public" on the Main Site ...
Collapse
Posted by Bruno Mattarollo on
Ok ... looks like "The Public" is "party_id 1" instead of "0" ... Will look in CVS for some updates ;)
Collapse
Posted by Bruno Mattarollo on
Ok ... what you have to do (at least that solved my problems) is grant "read" to "Object 0" on the Main Site ...