Closed (cannot reproduce)
Project:
Domain
Version:
7.x-3.7
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2013 at 12:35 UTC
Updated:
10 May 2013 at 11:54 UTC
Jump to comment: Most recent file
Comments
Comment #1
agentrickardDA does not issue redirects in this case (unless domain B is set to "inactive"). If you have a redirect, and not a form action problem, there is nothing I can do but help you find the problem module.
A form action pointing to the default domain should not be coming from DA. Perhaps some other module is making the search form use an absolute URL.
If you have the SEO options enabled, all forms should have the 'action' element set to an absolute URL to the current domain.
What is the HTML being generated for the block?
Comment #2
leanderl commented@agentrickard. Thank you for replying and helping out, I'm very grateful.
Yes, I know the behavior is strange. The action of the form is set to "/", see code below. But if it is as you say, that DA doesn't do anything other than redirect to the domain one is using when submitting, then the problem must reside elsewhere. The only "special" thing about my Search is that I use Display Suite to render the results.
Comment #3
leanderl commentedOk, so I turned off Display Suite (Search display) and it seems to be working as expected. Wish there was a way though to combine the two...
Comment #4
agentrickardWe've seen some odd behaviors with DS before. If DS rewriting the form action?
Does enabling the SEO option in DA fix the issue?
Comment #5
leanderl commentedThanks for trying to help. I have the following search settings... (see attached screen shot). The search itself is working, if I manually type the correct path (domain-b.com/search/content/term) I get the result I want. But when I do the Search with the search form it redirects to the default domain (domain-default.com/search/content/term).
(PS: The Search form itself is the standard drupal block)
Comment #6
agentrickardRight. What we're trying to determine is _where_ the redirect occurs. It's not in the defined #action of the form, so that means that something else is interfering.
You can set "Search engine optimization" to "Rewrite all URLs to a single source". That will force the #action URL to be absolute (e.g. http://example.com/search instead of /search).
If you change that and still get redirected, then something else is causing the issue.
DA will only issue a redirect if the search is performed from a domain marked "inactive" and the user cannot access that domain.
Comment #7
leanderl commentedWell, I just can't get it to work not even with "simple" default node search. There must be something really special in my installation. I've disabled Context, Display Suite, i18n, Redirect. Removed the entire template.php for my theme.
I'm wondering if it is somehow related to localhost issues. So far this is only a test environment. I'm using default domain loc.sitename.se and alternative domain dev.differentsite.se. Perhaps the domain prefixes should be defined or treated differently. I guess I'll have to install Netbeans and step through the execution of the code to see where the redirect to default domain happens.
Comment #8
leanderl commentedPerhaps it is something with my .htaccess?
Comment #9
mrgoltra commentedSubscribing. I am experiencing this too.
Comment #10
agentrickardComment #11
Lalas commentedHi
These are just suggestions you can try i'm not sure if it works in your case
1. Change the default theme to any core theme and test for result - If this case resolves the issue then you might have a wrong entry in any of your block. Disable each block and find the culprit
2. Disable all the rules and test for the result - If disabling rule resolve issue then enable each rule one by one and find the culprit