laravel/laravel — Issue #310: Bundle's uri segments
Author: ralf57
Created: 2012-02-05 23:26:53+00:00
State: open

https://github.com/laravel/laravel/blob/develop/laravel/routing/router.php#L157

strips the first segment from a uri handled by a bundle thus causing the following.

The uri: user/login

Works fine with the application/controllers/user.php

```php
class User_Controller extends Controller {

public function get_index()
{
return 'user index';
}

public function get_login() {
return 'User login....';
}
}
```
but not with a bundles/user/controllers/home.php

```php
class User_Home_Controller extends Controller {

public function get_index()
{
return 'user index';
}

public function get_login($id) {
return 'User login....';
}
}
```

Please note that:
- the get_index method here is correctly called with the "user" uri
- no route has been defined