Sites With Exclusive Page Routes Still Load Other Sites’ Pages #6190
Labels
Status: Confirmed
It's clear what the subject of the issue is about, and what the resolution should be.
Type: Bug
Confirmed bugs or reports that are very likely to be bugs.
Description
Sites in Rock have a setting labeled “Enable Exclusive Routes”. Both the Rock Documentation and the tooltip on the setting indicate that this option will prevent this site from loading other sites’ pages, and also prevent other sites from loading this site’s pages (unless the route is marked IsGlobal)
In Rock version 11.1 and earlier, we’ve confirmed that the routes worked as documented. But in versions 11.2 and later, enabling this setting does not prevent other sites’ page routes from being loaded using this site’s domain.
This may have changed in response to #4346 in order to allow system dialogues (Zone Blocks, Child Pages, etc) to be loaded from the external site with exclusive routes enabled, even though the pages themselves belong to the internal site.
However, at least as of v16.2, these system dialogues are marked as Global Routes and so they should be able to load now, even if the external site is marked as “Enable Exclusive Routes”.
Actual Behavior
Actual Behavior
Since v11.2, assuming that you have two sites (sitea.rockrmsdemo.com and siteb.rockrmsdemo.com), here is what we found in testing (unexpected behavior is marked with a⚠️ ):
Expected Behavior
We expected that routes for a page within an “Exclusive Routes” site would not load other site’s pages:
Steps to Reproduce
a. Assign this site to use the “Rock” theme so it’s visually identifiable.
b. Create a page in that site with a route of
siteapage
.c. Add an HTML block to that page with content “Site A Page”.
a. Assign this site to use the “Stark” theme so it’s visually identifiable.
b. Create a page in that site with a route of
sitebpage
.c. Add an HTML block to that page with content “Site B Page”.
a. Note that as expected, both pages are loadable from either domain, and show the theme/content according to the site they’re actually in, not necessarily the site whose domain was used.
Issue Confirmation
Rock Version
v11.2 through v16.8, and PreAlpha 17.0.38
Client Culture Setting
EN-US
The text was updated successfully, but these errors were encountered: