Update `onclick` to better support hashbang paths