This is wrong. ``http://localhost/bar/foo/../foo`` is the same than ``http://localhost/bar/foo``, not ``http://localhost/foo``.

Btw, you should not use ``foo`` both in the link and the original url as it makes it more difficult to see the change. Using different segments would be more readable