- πΊπ¦Ukraine AstonVictor
I'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks
I am working on a client project where the following are true:
In my particular scenario, my client has domain-english.com associated with the English language and domain-french.com associated with the French language. There are no other languages on the site. We have elected to use "by domain name" as the language negotiation method because we aren't using the domain.com/en VS domain.com/fr paradigm for showing content in different languages.
For performance reasons, we have "Switch back to http pages when there are no matches" checked off within the Securepages settings (/admin/config/system/securepages). This is because if a user lands themselves on one of the pages that should be served over HTTPS, the remainder of their visit to the site could very well remain on HTTPS which would thwart our ability to use Varnish cache for anonymous HTTP traffic. We want the user back on HTTP if they are visiting a page that does not have an explicit rule to be delivered over HTTPS.
Under these conditions, when a user adds something to their cart and then elects to click the "Checkout" button, the user is redirected to a Drupal Search page with "ttps%3A//domain-english.com/cart" as a search term. This is because upon viewing the source of that form, we can see the form action has been erroneously rewritten to something like this: http://domain-english.com/ttps%3A//domain-english.com/cart. This is not a valid form URL, so Drupal does the only thing it knows to do: process it as a Drupal search query.
This means any attempt to get further in the checkout process is impossible unless you edit the source directly before proceeding.
There is no work around that satisfies all requirements. You can either elect to use path based negotiation instead of domain name, or you can uncheck "Switch back to http pages when there are no matches". Doing so might have performance implications depending on your architecture, or may not be so big a deal.
I have authored a patch to the hook_form_alter() implementation within securepages.module that adds a logical check for the base path length. In the event that all conditions above are satisfied, the base_path is actually interpreted as "/" initially and then substr() is erroneously interpreting the content and re-writing it improperly.
Closed: outdated
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks