fix homepage & url route detection