More fixes for the application not being in the root of the domain