beforeGetUrl check session not working for home