Had to move where the BASE URL was set.