Project:Login Destination
Version:7.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)

Issue Summary

There is no way to send people to a page in the current language. This could added by adding a language option per rule, or by adding the destination as a variable that could be translated.

Comments

#1

Status:active» postponed (maintainer needs more info)

Hi!

I don't know what do you mean. The destination can be whatever you want. Could you provide a detailed description ?

#2

I'm assuming the OP means that you can't specify different destinations depending on the language.

For example:

People login from a dutch page would need to be redirected to site.com/nl/welkom
and
people login from an english page would need to be redirected to site.com/en/welcome

#3

It is pretty straightforward to do this in php snippet. Either you create multiple rules with concrete destinations and check the language in the condition, or you just create one rule where the destination depends on the parameter. The current language should be easily accessible, just check the drupal manual for the variable you have to read.

#4

If anybody needs an example this is the way I did it:

<?php global $user; return $user->language == 'es'? 'node/108': 'node/111'; ?>

nobody click here