fix custom routes defined by apps
Fix getRawPathInfo for the '/' edge case