make sure to handle ending "/" vs none properly for the core URLs