Fixing https issues on sub pages