hi
Please how to use token in the redirect to url?

Comments

delacosta456 created an issue.

Revathi Manohar’s picture

I need some information redirection through coding or ui.

monstrfolk’s picture

Are tokens supported in the redirect to url textfield?

Revathi Manohar’s picture

Hi,
Use menu token module.This will replace the url tokens

dev18.addweb’s picture

You can use the token_replace function to use token in redirect url. Please follow the step:

Step 1: add destination url url admin/config/people/login-destination/add
Step 2: In the redirect to page section click on Page returned by this PHP code and write the below code.

<?php
return token_replace('[site:slogan]');
?>

For more information refer Token replace.