So I had a problem where I needed a page to refresh but I couldn't use the .click() method on it because it does not work on href. I couldnt use window.location because I was trying to render a subtab which can be directly accessed due to security reasons. Then I stumbled upon this post:
https://stackoverflow.com/a/12801548/1864552
His solution works but I was hoping someone could give a good explanation on why this works.