Fix regression on clicking links