Are you sure the page is not refreshing, and is simply moving to the top of the screen?
Page is refreshing. I also tested with <h:commandLink action=”/test”>test 3</h:commandLink> and it’s working fine! Source code is the same, so I think this could be bug in prettyfaces. I debugged with firebug, and only difference is ‘Location’ header in server response i.e. in test3 location is set with new view-id and in test 2 location header is absent.
Did you test with this minimal example you posted or is it more complex in your page and you just reduced it for your post? If so, are there inputs on the page? Perhaps there is a validation failure and therefore the current page is rendered again.