> Some of the things that might seem obvious to some might not be so for me, thanks!
> my mind thought that url would refresh itself as soon as the page variable changed
This is what I thought too when I read the code. I don't think it's obvious at all!