Fix for weird routing error in subdirectories.