Fixed bug where homepage would get loaded on any single-segment page