fix: move handleSiteAlias() to onAfterInitialise for offline timing #75

Merged
jmiller merged 1 commits from fix/alias-offline-timing into dev 2026-05-28 18:22:07 +00:00
Owner

Summary

  • Moves handleSiteAlias() from onAfterRoute() to onAfterInitialise()
  • Fixes alias offline parameter not triggering Joomla offline mode
  • Joomla checks offline config before onAfterRoute fires, so the setting was too late

Fixes #72

## Summary - Moves `handleSiteAlias()` from `onAfterRoute()` to `onAfterInitialise()` - Fixes alias offline parameter not triggering Joomla offline mode - Joomla checks offline config before `onAfterRoute` fires, so the setting was too late Fixes #72
jmiller added 1 commit 2026-05-28 18:21:53 +00:00
fix: move handleSiteAlias() to onAfterInitialise for offline timing
Joomla: Repo Health / Access control (push) Successful in 2s
Universal: PR Check / Changelog Updated (pull_request) Has been skipped
Universal: PR Check / Branch Policy (pull_request) Successful in 1s
Joomla: Repo Health / Access control (pull_request) Successful in 2s
Universal: PR Check / Validate PR (pull_request) Failing after 4s
Branch Cleanup / Delete merged branch (pull_request) Successful in 3s
Update Server / Update Server (pull_request) Failing after 16s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || 'development' }}) (pull_request) Successful in 16s
Joomla: Repo Health / Release configuration (push) Has been cancelled
Joomla: Repo Health / Scripts governance (push) Has been cancelled
Joomla: Repo Health / Repository health (push) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Joomla: Repo Health / Release configuration (pull_request) Has been cancelled
Joomla: Repo Health / Scripts governance (pull_request) Has been cancelled
Joomla: Repo Health / Repository health (pull_request) Has been cancelled
e932cccbf6
The alias offline parameter was not working because handleSiteAlias()
ran in onAfterRoute(), but Joomla's SiteApplication::doExecute() checks
the offline config before that event fires. Moving it to
onAfterInitialise() ensures the config is set before Joomla's check.

Fixes #72

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jmiller merged commit 479daf4a43 into dev 2026-05-28 18:22:07 +00:00
Sign in to join this conversation.
No Reviewers
No labels
Type
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoWaaS#75