The Goal
We have a subset of items on our site that are not Joomla pages, but other systems such as a selection of HTML5 and Flash (for now) Games:
/play
/photobooth
- etc.
These should only be accessible after logging in through Joomla, but trying to intercept these URLS only leads to Joomla Errors Bypassing Joomla works, but then anyone can access them, and the connections we have don't work.
The Suggested Process
- Add new Menu Item (System -> URL)
- So, when going to this Alias, rather than going directly to the subset of the site, it first goes through Joomla for Login.
- See Below for Image of Configuration
- Add new Menu Item to Article / custom Menu
- Click on new Link
If Logged in:
- Go to page
If not Logged In:
- Redirect to Login Page
- Redirect back to Menu Alias
The Issue (Step 2)
"Internal" links that are not Joomla need to be accessed only when logged in with Joomla
Intended Behavior
If Logged in:
- Go to page
If not Logged In:
- Redirect to Login Page
- Redirect back to Menu Alias
Actual Behavior
If Logged in:
- Redirects to "404 - Component not found."
- (See Below)
- Redirects to "404 - Component not found."
If not Logged In:
- Redirects to Login Page
- Redirects to "404 - Component not found."
- (See Below)
System
- Joomla: 3.8.10
- PHP: 7.1.21
- Database: 5.5.5-10.0.36-MariaDB