Fixed routing bug when framework is a used in a subfolder.