Why is url() outputting two '//'s?
-
16-10-2019 - |
Question
$form_state['redirect'] = url('node/add/media/' . $form_state['nid']);
When I get redirected it ends up at "http://mysite.net//node/add/media/772"
Any ideas?
Solution
I might be talking out my you know what, but just try:
$form_state['redirect'] = 'node/add/media/' . $form_state['nid'];
Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange