changes to handle if there is any / in router value client side