Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a webform that upon submission redirects to a node (path = node/23). This node has translations available. I was hoping multilink would redirect the visitor to the confirmationpage in his chosen language. However for some reason this doesn't seem to work.
Is there a method / trick to get this working?
Comments
Comment #1
Andy Inman CreditAttribution: Andy Inman commentedI would have expected it to work. What happens if you go to node/23 directly? Does redirection work correctly with other pages/nodes? Is the user logged-in or anonymous?
Comment #2
K3vin_nl CreditAttribution: K3vin_nl commentedIf I am logged in as admin when I go to node/23 directly there is no redirect.
I tried as an anonymous user and then I was redirected to the correct page.
Is the redirect only used for anonymous user? I tested my webform when logged in as an admin.
* edit, I now also tried my webform as anonymous user, and then the redirect also works!
Comment #3
Andy Inman CreditAttribution: Andy Inman commentedOk, if you're logged in as admin then you will *never* get redirected because you will have the "no redirect" privilege (intended to help with testing) - use any other user (the Masquerade module is very useful if you don't have it.)
Comment #4
K3vin_nl CreditAttribution: K3vin_nl commentedThanks, that clarifies a lot!
Maybe a drupal_set_message would be usefull? Something like 'Because you are logged in as admin you are not redirected. Otherwise you would have send to *url*.'?
Comment #5
Andy Inman CreditAttribution: Andy Inman commentedThat's exactly what it does already - weren't you seeing a message? You should see something like:
MultiLink Redirect: redirect to http://yoursite.com/page (not done due to bypass multilink redirect permission.)
... as "warning" (typically displayed in yellow.) Maybe some problem with your theme? Try a standard one.