How to capture the values in the url after redirect

Discuss the development and implementation of Joomla! bots/Plugins here.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
johnfelix_j
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Oct 02, 2015 4:24 am

How to capture the values in the url after redirect

Post by johnfelix_j » Sun Oct 04, 2015 9:12 am

Hi All,

The system plugin I created redirects user to api after successful activation the api redirects me again to my site using the callback url provided. How to capture the values in url after redirect. The page redirects me to com_installer.

Here is the url with additional parameters returned from api.

I use joomla redirect the values given redirected from api.

index.php?option=com_installer&done=true&rcode=b34741a0d1ac2ddb8bda0f8539310a5b38fa1051&ccode=0c1b0228ee899b027a4185b26220704f8feb08a9

I need to capture the rcode and ccode values returned from api and store it in table.

Help needed.

Thanks.

harperlala
Joomla! Explorer
Joomla! Explorer
Posts: 463
Joined: Mon Aug 24, 2015 5:55 pm

Re: How to capture the values in the url after redirect

Post by harperlala » Mon Oct 05, 2015 10:06 am

did you try to use getVar() or getstring from joomla api?

johnfelix_j
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Oct 02, 2015 4:24 am

Re: How to capture the values in the url after redirect

Post by johnfelix_j » Mon Oct 05, 2015 11:36 am

Dear harperlala,

The problem here is the url get redirected along with the values to com_installer. How to user getvar here in this scenario.

Kindly suggest.


Thanks


Locked

Return to “Plugins/Mambots”