I had a difficult to diagnose issue with this.
The issue was that whilst my Application Settings, were set to “Single Page App”, the setting had not be saved.
I had to change the Application Type to something else, save the Application Settings, and then change the Application Type back to “Single Page App”, and save the Application Settings again