Handle routes properly when the app is running in a subdirectory