Multiple site issue on the same domain

Description

If you have multiple sites setup, but they are folders all within the same domain, then switching between sites seems to fail.

Initially it works, but as you do a ?fwreinit and login/out of the admin, when you switch over to one of the other sites, the tree fails to load properly and when you try to edit the homepage or add another page you get the red box of doom saying "Error - The page could not be found"

i think it _might _be caused by the setActiveSite function in \handers\admin\sites.cfc, as it only seems to be comparing domain and not folder.

When i create another site in the same project, but this time use a different domain name, then it works perfectly everytime.

If possible could the fix be added to 10.6.x as well as the latest version?

Environment

None

Activity

Show:
Steve Dowle
January 17, 2017, 5:43 PM

I've upgraded to the latest version of preside but am still getting the issue. Below is a shot of the test site, and in this example testsite2 and testsite3 are both failing, and revert back to showing the testsite4root site tree, after i get the red message of death.

Steve Dowle
January 18, 2017, 4:18 PM

I've tested this now with commandbox rather than IIS and i can't seem to recreate it, so it may well be caused by this.

Dominic Watson
February 10, 2017, 3:13 PM

This was a sneaky one. First time CSS/JS requests for static assets where managing to reset the active admin sites. This was why it was intermittent; once the assets were cached in your browser there was no need to fetch them again and so the active site wouldn't get reset again.

Assignee

Unassigned

Reporter

Steve Dowle

Labels

None

Accepted

Yes

Fix versions

Affects versions

Priority

High
Configure