Ugly conditional there (I know, not this change, but meh):

```ruby
id = URI.unescape id
return( m = id.match( %r~^#{name_paramitized}/(.+)~ ) ? m[1] : id )
```