I can't suggest anything specific. It just seems like maybe you shouldn't need to rely on checking fragments. Like, maybe there is a way to define a route that matches fragments by regex or something? I'd say leave it as is and note that Kumar thinks it's "weird" ;)