Form Posts using home_url()
-
Hi,
I’ve been having a few issues with mixed content on a secure booking page.
I am securing two pages on my site using https. I have used the Secure Post checkbox on each page. This works fine and when navigating to these pages they use https.
For all other pages I am using http. I have used the ‘Force SSL Exclusively’ option in the main settings.
The issue occurs on a form post:
<form role=”search” id=”searchform” class=”search” method=”get” action=”<?php echo home_url( ‘/’ ) ; ?>”>
Everytime the page renders it always appears as http. This confused me for a long time until I turned off the secure post and force ssl exclusively and navigated to the page manually using https. When I did this the page rendered correctly and picked up the fact that it was https.
I was wondering if you had come across this before and whether you could recommend a fix for this?
I look forward to hearing from you!
- The topic ‘Form Posts using home_url()’ is closed to new replies.