In JSF, the URL isn't always pointing to the current page. That's because a URL is a
resource locator. It is NOT a "file location".
In most systems, the URL does act like a "file locator" to some degree or other, but JSF uses an extensive postback mechanism so that doesn't work.
You should consider the URL to be more of a "session handle" than an absolute indicate of which view resource is being displayed.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.