fix handling of / in url to properly support non-phpcr storage

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no (unless people have overwritten templates)
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

i want to check in the sandbox if phpcr still works fine