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.
For example,
I have following path in "Redirect conditions"
forum
user
Under "Destination URL settings" I would like to redirect to different destination based on the above.
For instance,
forum -> redirect back to forum
user -> redirect to front page
Comments
Comment #1
3CWebDev CreditAttribution: 3CWebDev commentedYes, that is exactly what this module does. For 'forum' or 'user' you will need to come up with the scenario for each one and write a condition that checks for that scenario (you cannot use a path for the condition, it must be a condition to check for, ie user belongs to a specific group, etc). Then, for each condition you would simply return the path to be redirected to.
Comment #2
eporama CreditAttribution: eporama commentedThe default behavior for Drupal is to return you to the page you were viewing when you logged in if you're using the user_login_block. So, if I'm reading your question right, you can actually skip the forum condition and redirect only on "user". The simplest way to redirect to the homepage is to return a static
<front>
.