Removing slash that breaks pagination