Redirect error with domain languages.
randall.vg - December 9, 2008 - 14:02
| Project: | Shared Sign-On |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
Jump to:
Description
When one of the shared domains has another language defined, the initial redirection will fail because the url() function is not used in the correct way.
The URL returned is in the following form:
www.domain.comhttp://www.otherdomain.com/singlesignon/initial_check?slav...
%2Fwww.otherdomain.com%2Fadmin%2Fsettings%2Fsinglesignon
I've attached a patch to fix this problem.
| Attachment | Size |
|---|---|
| singlesignon-20081209.patch | 511 bytes |

#1
#2
I can confirm that the patch works as described, thanks.
#3
Marked #264360: Conflict with Domain Languages? as duplicate (though older) and I suppose we can change status to tested.
#4
I had problems with the following lines:
<?php//if (function_exists('t') ? $op == t('Log in') : $op == 'Log in') {
if($op == 'Log in' || $op == 'Einloggen'){
?>
The outcommented line is the original line, the line below is my fix. It seems as if the t function is not active yet. When you have the login button translated this if statement is never going to work out...