SPOT-619

This fixes it.  The window.default_location variable was getting set incorrectly in a script at the top of the templates.