Make possible to install the app in a subdirectory

NB: use an env variable to set rooturl.