Updated the router to add a directory when the app is hosted in a sub directory of another site