Login & Registration Redirects
Login & Registration Redirects is a free Joomla system plugin with two redirects you switch on separately. After Registration sends people to a page you choose once they finish Joomla's registration form. HikaShop Login sends a guest who opens a HikaShop product or category they aren't allowed to see to your login page instead of a 404, and brings them back to that product after they log in.
Stock Joomla only lets you choose where people land after registering from the settings of a registration menu item, which most sites don't have. HikaShop answers a guest who may not see a product with a plain 404, so the visitor thinks the product is gone when all they needed was to log in. Each redirect has its own tab and its own on/off switch, so you only turn on what your site needs.
New to Login & Registration Redirects? This page is the reference manual. For an overview of what Login & Registration Redirects does, with the download, see its page on cybersalt.com.
Release history. This page documents the current release, 1.0.0. For what changed in each version, see the changelog.
Requirements. Joomla 5 or Joomla 6, and PHP 8.1 or newer. The HikaShop Login redirect needs HikaShop; on a site without it, that part does nothing.
Login & Registration Redirects is free and open source, available from cybersalt.com.
Installing
- Download the zip (
plg_system_csloginregistrationredirects_v*.zip) from cybersalt.com. - In your Joomla admin go to System → Install → Extensions and upload the zip.
- The plugin switches itself on, with both redirects off. The install message has an Open Plugin Settings button: click it and switch on the redirect you want on its tab, then Save.
To find the settings later, open System → Manage → Plugins and search for
Login & Registration Redirects. The plugin is listed as
System - Cybersalt Login & Registration Redirects.
Updates come through System → Update → Extensions like any other extension, and the Changelog button there shows what's new. Updating keeps your settings.
The Plugin tab
The first tab holds Joomla's usual plugin settings (Status, Access, Ordering) and a File check line that tells you whether every installed file matches the release.
⤢ Click to enlarge
If the File check reports missing or changed files, an install or update didn't finish, or someone edited the plugin's files. Install the same package again to repair it.
After Registration
When someone completes Joomla's registration form, Joomla normally shows its own "registration complete" page. With this redirect on, they go to the URL, menu item or article you pick instead. No registration menu item is needed.
⤢ Click to enlarge
| Setting | Default | What it does |
|---|---|---|
| Redirect after registration | No | Switches this redirect on. |
| Destination type | URL | URL, Menu Item or Article. The matching picker appears below it. |
| URL | / |
A path such as / for the home page or /welcome, or a full
address. |
| Menu item | — | Any published site menu item. Joomla builds the proper address for it. |
| Article | - Select an article - | Any published article, listed as Category / Article title. If the article is later unpublished or deleted, people go to the home page instead. |
| Show success message | Yes | Shows a message on the page they land on, so they know their registration went through. |
| Custom message | (empty) | Your own wording for that message. Left empty, the message is "Account created. Please check your email to activate your account." |
Which registrations it catches. Joomla shows its "registration complete" page when New User Account Activation (under Users → Manage → Options) is set to Self or Administrator, and that page is what this redirect replaces. With activation set to None, Joomla sends new users straight to its login page instead, so the redirect doesn't come into play. With Administrator activation, Joomla shows the same page again after the person confirms their email address, so they are redirected then too.
It works with Joomla's own registration form (the Users component). Registration forms of other extensions, such as a shop's checkout, aren't affected.
HikaShop Login
When a guest opens a HikaShop product or category that is restricted to logged-in customers,
HikaShop answers with a 404 page. With this redirect on, the guest goes to your login page instead.
The plugin adds the address of the product they wanted to the login link (as
return=), so after logging in they land back on that product.
⤢ Click to enlarge
| Setting | Default | What it does |
|---|---|---|
| Redirect guests to login | No | Switches this redirect on. Logged-in customers still get the 404. |
| Destination type | Menu Item | Where your login form is: Menu Item, URL or Article. |
| Menu item | - Joomla's login page - | Leave it on Joomla's login page, or pick a published menu item that shows your login form. |
| URL | / |
The path or full address of your login page. If it's empty, Joomla's login page is used. |
| Article | - Select an article - | A published article, for example one with a login form in it. If none is picked, or the article is later unpublished or deleted, Joomla's login page is used. |
| Product pages | Yes | Redirect on restricted product pages. |
| Category pages | Yes | Redirect on restricted category pages. |
| Show notice on login page | Yes | Shows a notice on the login page so the guest knows why they were sent there. |
| Custom message | (empty) | Your own wording for that notice. Left empty, it reads "Please log in to view this product." |
Getting the guest back to the product. Joomla's login page, and any menu item of
type Users → Login Form, read the return= address and send the guest back to
the product after they log in. A Login module placed on some other page goes wherever its own
Login Redirection Page setting says, so if you want the come-back to work, use Joomla's login
page or a Login Form menu item.
The redirect only steps in when all of these are true: the visitor is a guest, HikaShop answered with a 404, and the page is a HikaShop product page or category page that you've switched on. Any other error, and any page outside HikaShop, is left alone.
Coming from the old plugins
This plugin replaces two older Cybersalt plugins, CS Registration Redirect and CS HikaShop Login Redirect. Install it over the top; you don't need to remove them first. For each old plugin it finds, the installer:
- copies its settings into the matching tab: destination type, URL, menu item, article, show message and custom message, and for HikaShop also Product pages and Category pages,
- sets that tab's on/off switch to match whether the old plugin was enabled,
- switches the old plugin off and uninstalls it.
The install message lists each old plugin that was taken over. Settings are copied only once per old plugin, so a later update never overwrites what you've changed here since. If an old plugin can't be uninstalled for some reason, it is still switched off, and you can uninstall it yourself under System → Manage → Extensions.
Good to know
- Both redirects start off. On a fresh install neither redirect does anything until you switch it on, so installing it for one doesn't change the other.
- It switches itself on only once. The plugin enables itself the first time you install it. If you switch it off, an update leaves it off.
- The return address is a full URL. Joomla's login form ignores a return address that is only a path, so the plugin sends the full address of the product, which is what gets the guest back to the right page.
- No redirect loops. If the login page you pick is itself a HikaShop page, or is the same page the guest is already on, the plugin leaves the 404 alone rather than send them round in a circle.
- Without HikaShop the HikaShop Login tab can stay switched off; it has nothing to act on.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| New users still see Joomla's "registration complete" page | Check that Redirect after registration is on and that you saved, and that the plugin itself is enabled under System → Manage → Plugins. |
| New users land on Joomla's login page instead of your page | New User Account Activation is set to None, so Joomla skips its "registration complete" page (see After Registration). |
| Guests still get a 404 on a restricted product | Check that Redirect guests to login is on and saved, and that Product pages (or Category pages) is Yes. Logged-in customers keep getting the 404 by design. If the login page you picked is a HikaShop page, the plugin skips the redirect to avoid a loop: pick Joomla's login page or another page. |
| After logging in, the guest isn't taken back to the product | The login form they used doesn't read the return address, which is usually a Login module on a page of its own. Use Joomla's login page or a Users → Login Form menu item. |
| The File check says files are missing or differ | An install or update didn't finish, or someone edited the files. Install the same package again. If that fails too, security software on the server (for example Imunify360 Proactive Defense) may be blocking Joomla's installer. |
Getting help
Questions and bug reports are welcome through the Cybersalt support form or GitHub.
You'll get the quickest answer if you include your Joomla and PHP versions, the plugin version (shown in System → Manage → Extensions), your HikaShop version if the question is about the HikaShop Login redirect, and which destination type you picked.
Login & Registration Redirects is developed by Cybersalt Consulting Ltd. and released under the GNU General Public License v2 or later. HikaShop is a trademark of its owner; this plugin is not affiliated with or endorsed by it.
The After Registration tab — click anywhere to closeClose ×
The HikaShop Login tab — click anywhere to closeClose ×