10 votes
Accepted

How to redirect user with system message in Joomla 3

Passing the message via the redirect function is deprecated, but both redirect() and enqueueMessage() are still both fine to use on their own. You simply need to use both together, like so: $app = ...
user avatar
  • 26.5k
7 votes
Accepted

Joomla Session->isActive() & session timeout redirect not working

If you look at the session.php file, you see the following: public function isActive() { return (bool) ($this->_state == 'active'); } Which is the function you're calling. I'm not sure if ...
user avatar
  • 26.5k
6 votes
Accepted

Use Joomla redirect component to fix broken URLs

With the below .htaccess rule you can redirect all pages from a url with the pattern of: https://www.portal-gestao.com/whatever/whatever/9999-title-of-the-page to a new url of : https://www....
user avatar
  • 19.5k
6 votes
Accepted

Hide homepage when user is logged in

I've used Nomad in the past - instead of redirecting, it's a system plugin that actually overrides the default home page and replaces it with your choice of locations based on User Groups.
user avatar
  • 7,685
5 votes
Accepted

How do I allow direct access to my custom .php file in a Joomla Module to be consumed from AJAX?

Typically the only thing preventing direct access to a joomla file is a line at the top of the file: defined('_JEXEC') or die('Restricted access'); If that is not already at the top of the file, ...
user avatar
5 votes
Accepted

How do I get a menu item to send a parameter to a component?

The solution I went with was to add the parameter (id) to the view's default.xml: <?xml version="1.0" encoding="utf-8"?> <metadata> <layout title="mycomponent"> <...
user avatar
5 votes
Accepted

How can I redirect old domain to a new domain?

There are various techniques you can do to redirect an old domain to a new one and many depend on your server and site configuration. If you are hosting on Apache server, then one of the most common ...
user avatar
  • 19.5k
4 votes

Redirect to previous page after login in custom component

Try: $url = base64_encode(JUri::current()); $returnurl = JRoute::_('index.php?option=com_users&view=login&return='.$url, false); //false will make the URL non-xhtml $mainframe->redirect($...
user avatar
  • 266
4 votes

Hide homepage when user is logged in

You can always use extension like this to redirect users on login: http://extensions.joomla.org/extensions/extension/access-a-security/site-access/redirect-on-login
user avatar
4 votes
Accepted

Redirects aren't working from com_redirect

I have not tested it with Redirect Component but you can not redirect url with GET parameters as they get passed in a different variable in Apache. So your source would be ignored. You would need to ...
user avatar
4 votes

How do I allow direct access to my custom .php file in a Joomla Module to be consumed from AJAX?

An alternate solution , If you are developed the module in proper Joomla structure then instead of including Core Joomla framework to module file you can use com_ajax for making ajax call to module ...
user avatar
  • 1,507
4 votes

Submit a view instead of redirect to another view

Answering my own question... I should have spend some time in google before asking my question. Joomla supports CSRF anti-spoofing and it is explained in How_to_add_CSRF_anti-spoofing_to_forms Since ...
user avatar
  • 2,651
4 votes

Trying to Fix Hacked Site

I had to face this problem recently. In most cases I saw the libraries folder hacked and I had to replace it with a clean one to see my website correctly. Here is what you can do: put on the root ...
user avatar
  • 221
4 votes

How to redirect user with system message in Joomla 3

The best thing to do is to handle all redirects directly in sub controllers where you just need to use $this->setRedirect($url,$msg,$type); and MVC will do the rest of the job. If you need to ...
user avatar
  • 967
4 votes

redirect component in joomla doesn't work

From the Joomla documentation:"This component is primarily used for redirecting URLs for web pages that no longer exist on your website to web pages that are working. The URL you want to redirect from ...
user avatar
4 votes
Accepted

Redirect if userid is not found in a database table

The first problem is that you're using joomlausers->id which doesn't look correct. It should be $joomlausers->id (with a $ at the beginning). Secondly, loadObjectList() returns an indexed array ...
user avatar
  • 26.5k
3 votes

Use Joomla redirect component to fix broken URLs

You can use JOOMSEF component, which is for SEO purpose and more of this extension is free. Also in that component you have option to remove category and menu names from url and also you can ...
user avatar
  • 293
3 votes

Use Joomla redirect component to fix broken URLs

What you could do is use Joomla's Redirect Manager to redirect the old URL to the new one. In the Joomla backend, go to: Components >> Redirect >> New In the Source URL field, enter the old URL and ...
user avatar
  • 26.5k
3 votes

Hide homepage when user is logged in

In addition to redirecting then when they try to access the homepage, you can also redirect them once they have logged in. To do this, open the Login module in the Module Manager and you will see an ...
user avatar
  • 26.5k
3 votes

Modify standard redirect url after session time out

You could write a template override for the login template being called when the standard login url is displayed. There you create a HTTP 302 Move response status. Or you write a url rewrite to your ....
user avatar
  • 368
3 votes
Accepted

Does joomla automatically populate the redirect component?

Yes, Joomla records every URL request resulting in a 404 HTTP status code in the redirect component. The purpose is to provided an automated means for website administrators to manage redirects with ...
user avatar
  • 1,396
3 votes

com_users login redirect issue

You can set a Menu-Item to be hidden, using Tab "Link Type" > "Display in Menu" set to "No" (3.7). So no need for an hidden Menu anymore.
user avatar
3 votes
Accepted

Trying to Fix Hacked Site

The best method to check the hacked website is to scan the malware using this link : https://sitecheck.sucuri.net/ Here, all the malware content will be loaded and you can easily back track them. ...
user avatar
  • 1,365
3 votes
Accepted

Reload admin form after save field in database

When you save the template with the JavaScript call saveTemplate(), you are sending an Ajax call to the server. This Ajax call is the one being redirected with a HTTP redirect. You are ignoring the ...
user avatar
  • 246
3 votes

Redirect if userid is not found in a database table

I don't think it is very direct to filter the result set when sql is perfectly qualified to do such logic. As Lodder corrected, you also need to use setQuery(), fix your missing $, adjust your result ...
user avatar
  • 4,448
2 votes

Post-login Redirection Not Working

There seems to be a problem with the generated redirect URL. Example: When using the login module to log in, the URL for the article "Traditional round nosed bear" is this: index.php?option=...
user avatar
  • 13.3k
2 votes

This page isn't redirecting properly when clicking a Joomla tag

This is looping behavior, but I can't pinpoint the cause from the information given. What it is implying is that it's trying to link http://website.com/firstaddress to redirect to http://website.com/...
user avatar
  • 1,079
2 votes

Hide homepage when user is logged in

There is actually a very simple way to do it in Joomla 3x. Go to Users > Access Levels and click on the Guest access level. By default, under User Groups Having Viewing Access, only Guest is checked. ...
user avatar
  • 131
2 votes

Mass update single internal link

use a redirect in your .htaccess file RewriteEngine on Redirect 301 /purchase/buy-here.html /shop.html
user avatar
  • 180

Only top scored, non community-wiki answers of a minimum length are eligible