Fixed adding the separator when switching between secure and non-secure pages.