symphonists/url_router — Issue #10: Redirect omits subdirectory
Author: EllieA
Created: 2012-01-26 15:20:08+00:00
State: open

Local installation, Symphony 2.2.5, URL Router 1.3

Server document root: `http://localhost:8080/`
Website document root: `http://localhost:8080/website`

Goal: Redirect from site's index page to the same page with an added required default parameter (data source attached to page filtering entries on required parameter).

Redirect rule: `from: ^$^ to: /default-parameter/`

Accessing `http://localhost:8080/website/` redirects to `http://localhost:8080/default-parameter/`, instead of `http://localhost:8080/website/default-parameter/`.

Accessing `http://localhost:8080/website/parameter-that-should-throw-404/` redirects to `http://localhost:8080/parameter-that-should-throw-404//default-parameter/`, instead of throwing an 404 error since no entries are returned by the data source.