Why not just add the trailing slash if it's not there? Further, why not just allow someone to use the app name slug? I ask not rhetorically, but because I suspect there might be good reason :)