Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Using Metamod to create redirect when Joomla redirect won't work

Using Metamod to create redirect when Joomla redirect won't work

Dear Metamod Developers & Community,

I created a custom registration page. The URL is:
http://www.mysite.com/registration

But when users are already logged in and click "register now" or at other random times, they're redirected to the URL:
http://www.mysite.com/registration/profile

I want them to be redirected to the URL:
http://www.mysite.com/profile

However, if I try to use the Joomla redirect plugin, it won't work. Users are still redirected to /registration/profile.

IS it possible to use Metamod in this kind of situation to redirect logged in users to the URL of my choosing?

I'm using:
Joomla 3.6.5
PHP 5.6.27
K2 2.7.0
Social Factory 3.5.7

Thank you!

Kind regards,

Scott Oman

baituo01
Intermediate Modder
ranks
useravatar
Offline
46 Posts
Administrator has disabled public posting

Re: Using Metamod to create redirect when Joomla redirect won't work

just subscribing

baituo01
Intermediate Modder
ranks
useravatar
Offline
46 Posts
Administrator has disabled public posting

Re: Using Metamod to create redirect when Joomla redirect won't work

Hi Scott - is this still a problem? Just want to confirm before I spend time on it.
Thanks
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Using Metamod to create redirect when Joomla redirect won't work

Hi Stephen,

No, actually it's no longer a problem. I should have updated this thread. Sorry about that.

I developed a workaround by creating a couple additional modules and publishing some for public and the others only for registered users, so that when the user is registered and logged into the site they no longer see the links mentioned above, and therefore aren't redirected to the wrong pages.

Thanks very much for your willingness to help though.

Kind regards,

Scott

baituo01
Intermediate Modder
ranks
useravatar
Offline
46 Posts
Administrator has disabled public posting

Re: Using Metamod to create redirect when Joomla redirect won't work

Hi Stephen,

I hope it is ok to continue this one...

I have a link in an article for 'login to forum', once you login you get directed to the forum.  My problem is, if you are already logged in it takes you to the same page with the option to 'log out'.  Is it possible for Metamod to redirect logged in users to forum page?

Thank you
Kind regards
Lene

lt635
Beginner Modder
ranks
useravatar
Offline
11 Posts
Administrator has disabled public posting

Re: Using Metamod to create redirect when Joomla redirect won't work

lt635, why can't you do the exact same thing I did?

Create a new, duplicate module.
1st module only appears to guests
2nd module only appears to logged in users
links you provide within your module, content, etc. (or don't) are different for both modules 1 and 2
therefore the "log out" link you mentioned won't appear in that position anymore
problem solved

baituo01
Intermediate Modder
ranks
useravatar
Offline
46 Posts
Administrator has disabled public posting

Re: Using Metamod to create redirect when Joomla redirect won't work

Hi Scott,

Thanks for your reply.  I am not using the module, it is a menu link to the component user login.  The forum is only available after login and the link that my client wants is in an article.  It works great if you are not logged in but if you go to the document and you are logged in it takes you to the login page with the 'log out' button.

Kind regards
Lene

lt635
Beginner Modder
ranks
useravatar
Offline
11 Posts
Administrator has disabled public posting

Re: Using Metamod to create redirect when Joomla redirect won't work

Hard to guess as I'm not familiar with your setup but perhaps the same thing would work by creating two menus?
the menu link in the 2nd menu does not include the link mentioned, etc.
therefore the "log out" link never appears in that position when logged in

baituo01
Intermediate Modder
ranks
useravatar
Offline
46 Posts
Administrator has disabled public posting

Re: Using Metamod to create redirect when Joomla redirect won't work

I guess if it's just some link in an article/item page, or maybe a specific extension, this won't work.
Otherwise, seems like it should.

baituo01
Intermediate Modder
ranks
useravatar
Offline
46 Posts
Administrator has disabled public posting

Re: Using Metamod to create redirect when Joomla redirect won't work

Hi Scott,

It is a link in an article page.  It would be something like when you click on the link you go to login, if not logged in stay on page, if logged in redirect to forum.

Regards
Lene

lt635
Beginner Modder
ranks
useravatar
Offline
11 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10796
Newest User:
mokao3
Members Online:
0
Guests Online:
144

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked