Skip to content

Add login site redirect functionality for multisite users#24

Merged
corsacca merged 3 commits into
DiscipleTools:masterfrom
cairocoder01:site-redirect
Jun 26, 2026
Merged

Add login site redirect functionality for multisite users#24
corsacca merged 3 commits into
DiscipleTools:masterfrom
cairocoder01:site-redirect

Conversation

@cairocoder01

Copy link
Copy Markdown
Contributor

If a user exists only on a sub-site and not the root site and the user mistakenly goes to the root site to login, they are currently not allowed to login. This redirects them to their appropriate sub-site.

If the user is a member of a single sub-site, it just redirects them right to that site.

If the user is a member of multiple sub-sites, they are brought to a site selector to choose which they want to go to.

image

If the user is a member of multiple sub-sites and the root site, they just go to the root site.

This logic only happens on the login of the root site. Logins for the sub-sites still require the user to have access to the site they are on.

@cairocoder01 cairocoder01 requested a review from corsacca June 26, 2026 12:14
@corsacca corsacca merged commit 2426a39 into DiscipleTools:master Jun 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants