Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've got a search box on the mobile version of my site (m.mysite.com?device=mobile). When a user tries to search for something, they end up with a blank page (www.mysite.com/search/node/searchterm).
Any ideas? Thanks!
Comments
Comment #1
pbeakley CreditAttribution: pbeakley commentedReally? Nobody has any input on how to ensure that the results of a search get sent to m.mysite.com?
This strikes me as a bona fide bug, unless someone can point me at some configuration component I've overlooked.
Thanks for reading!
Comment #2
jasonglisson CreditAttribution: jasonglisson commentedDid you ever fix this? You just need to put in Mobile Tools to not redirect to the desktop theme when anything comes up with search/* in the URL. /* for a wild card. It works for me.
Comment #3
pbeakley CreditAttribution: pbeakley commentedI don't see where to set that, tk421jag. Under "redirection options," I can set redirection exceptions but I'm not following the logic of how that'd work.
Would I specify "do not redirect" search/*? If so, wouldn't that basically force the mobile user to use the www. address?
Would I specify "do only redirect" search/*? If so, wouldn't that force www. users who visit search/* to be redirected to the mobile site?
It may just be poorly worded or maybe I'm just dense. :-/
p.
Comment #4
minorOffense CreditAttribution: minorOffense commentedIs this still an issue in the latest build?
What is your base url set to? It could be that when the search form is submitted, it loses the mobile tools query arguments and sends you back to the normal site.
Comment #5
pbeakley CreditAttribution: pbeakley commentedIt isn't set for this site, but that's an interesting line of attack.
Since it isn't set, should I set it? It sounds like you're saying that might cause weirdness.