rails/rails — Issue #4314: request.fullpath for engine mounted at / returns double forward-slash
Author: joneslee85
Created: 2012-01-05 05:13:35+00:00
State: open

I have an app that is mounted at `/`:

```
# config/routes.rb

Rails.application.routes.draw do
mount MyApplication::Engine => "/"
end
```

doing `request.fullpath` returns `//` instead of `/`

I double-check again by mount my app on different mount point:

```
mount MyApplication::Engine => "/store"
```

and `request.fullpath` returns `/store/`, which is okay

IMHO, `fullpath` should simply return path w/o trailing `/`. Or for the special case of mount point '/', it should returns `/` instead of `//`