I want to send a user to user/[uid]/subscriptions/signup when they log in. I've enabled the php filter. I can get this code to create the correct output when on an article. But for some reason it's not evaluating the php on the login destination's destination rule. I get this error:
Page not found
The requested page "/loud/%3C%3Fphp%0D%0Aglobal%20%24user%3B%0D%0Areturn%20%22user/%22.%24user-%3Euid.%22/subscription/signup%22%3B%0D%0A%3F%3E" could not be found.
This is the snippet I'm using. But I don't think the snippet is the problem. It's the evaluator not evaluating it....
<?php
global $user;
return "user/".$user->uid."/subscription/signup";
?>
Any advice on how to turn on the evaulator for the login destinations?
Comments
Comment #1
mithy CreditAttribution: mithy commentedDid you also check that it should use the PHP snippet instaed of jump to a page? It looks like it's just trying to jump to a page, which is you snippet.