I created a simple redirect:

Path:

expert
expert/*

Redirect to: user/login
So when I try to access www.example.com/expert I end up in an endless loop.

I checked the code. drupal_goto is being called.

[...snip...]

// A destination in $_GET always overrides the function arguments.
  // We do not allow absolute URLs to be passed via $_GET, as this can be an attack vector.
  if (isset($_GET['destination']) && !url_is_external($_GET['destination'])) {
    $destination = drupal_parse_url($_GET['destination']);
    $path = $destination['path'];
    $options['query'] = $destination['query'];
    $options['fragment'] = $destination['fragment'];
  }

Since $_GET['destination'] is always filled with 'expert' the $path variable is always reset to expert when it should go to user/login instead.

Comments

kevinquillen’s picture

Version: 7.x-1.0 » 2.0.x-dev