If a subsite is configured with an empty pages text area at admin/build/subsites/1/content/pages and the option "Show on only the listed pages." is chosen, then that subsite will be activated on the root of the site.

At first sight, checking if $subsite->pages is empty in _subsites_get_current_by_pages() will solve this issue.

Comments

Cyberwolf’s picture

Title: First subsite applies to root of site when pages textarea is left empty » Subsite applies to root of site when pages textarea is left empty
davyvdb’s picture

Status: Active » Closed (won't fix)

After checking offline with Cyberwolf, this appeared to be a bug in the specific installation.