Please switch to TARGETURI so you'll be able to do:

```ruby
uri = normalize_uri(target_uri.path.to_s, "index.php")
```