Forum OpenACS Development: Subsites and login/registration...

Collapse
Posted by Robert Locke on
If I create a subsite named, say, "/foo/", and (as an un-logged in
user) attempt to access a restricted file or directory, say, "/foo/x-
files/", shouldn't I be redirected to the login/registration page
under the "foo" subsite (ie, "/foo/register?return_url=..."), instead
of, as is currently the case, the login/registration page of the Main
Site (ie, "/register?return_url=...") and also could I make this
question any longer than it already is? =)

But, seriously, I have a subsite with a different look than the main
site.  Upon accessing a restricted page on the subsite, I'm taken to
the main site's registration/login page, which seems wrong.

Should this be filed as a bug?  Or is this behavior intentional?

Collapse
Posted by Jeff Davis on
It is a bug (or an intentional misfeature that was never corrected)
and unfortunately it is fairly pervasive (about 120 occurances
of redirects to the absolute path including 5 in acs-subsite itself
which presumably was intended to be subsite aware :) )

I will take a look at fixing it.

Collapse
Posted by Walter McGinnis on

Jeff,

I want to point out a related issue:

You can't login into separate subdomains (i.e. they are actually subsites, but are mapped to subsite nodes in the host- node map), instead you have to login to the main site.

There are few threads on this already:

A lot of people would like to see this resolved, but its a pretty hairy issue and nobody has found the time yet. I'm not expecting you to take this up, but if you find anything that might be helpful on this front while you are digging into subsite registration it would be great if you could report back.

TIA,