Use smart function to get correct link to PW so we land on correct page