Fixed routing bug when installing the app in sub directories by slicing the beginning of the request uri