3

I am trying to use drupal_goto function but it is redirect to wrong URL

here is my code

$dis='user/' . $account->uid . '/edit/?id=6356928';
 drupal_goto($dis);

the problem with the ID

any suggestions ??

1 Answer 1

5

drupal_goto uses the same $options settings as url().

Try to do the following

drupal_goto("user/" . $account->uid . "/edit", array(
    'query' => array(
        'id' => '6356928',
    ),
));
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.