Hi,

As my installation is placed in www.example.com/somedir/ , I found out that r4032login will lead to error, because it redirects to '/user/login'.

I added $base_path to the globals on line 31 and changed line 34 to the following:

header('Location:' . $base_path . 'user/login?destination=' . drupal_urlencode($_REQUEST['q']), TRUE, 302);

and works fine.

Comments

deekayen’s picture

Status: Active » Needs review

This is probably more drupal-y (untested):

drupal_goto(url('user/login', 'destination='. drupal_urlencode($_REQUEST['q']));
deekayen’s picture

Status: Needs review » Fixed

fixed in CVS revision 1.2

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.