Page URL variable broken on search result page
Hi,
In the low search results tag, the {page_url} variable is not working, the GET params are being passed through. Expample:
Search for "media" - search results page url is: http://domain.dev/publications?keywor...
Search result entry: "Holes - KS3 Fiction" URL is usually http://domain.dev/publications/holes-..., but when on search result page it is http://emc.dev/publications/?keywords... so it just performs another search rather than going through to the page itself.
Hope this is clear!
Replies
Low 30 May 2014 14:06
The {page_url} is just generated by the channel:entries tag itself behind the scenes. I presume you're using Structure? Have you asked them about this behaviour?
Joe Beaver 30 May 2014 14:10
I am using Structure, and I haven't asked them about it. I shall now - thanks
Joe Beaver 30 May 2014 15:50
Hi Low,
I've been in conversation with Travis at Structure. You can see what was said at https://structure.tenderapp.com/discu...
The {page_url} variable pulls through with no problems when no search terms are entered (I am using the exp:low_search:results tag instead of exp:channel:entries on this particular page), but it breaks when the search get params are in the url.
I've tested other pages which just use the regular channel entries tag by putting random get variables into the url and the {page_url} variable works on them with no issues by stripping the get params. Seems like when its used inside low_search:results it doesn't strip the get params.
Any ideas?
Low 31 May 2014 08:25
Is the difference between "domain.dev" and "emc.dev" not a typo? If the domain changed, it sounds like this problem (concerning pagination, but the appearance of a different domain seems similar).
As I said, LS doesn't do anything with the {page_url} var. Nor can I see in the core code that using a different tag other than the channel:entries tag should affect the way that var is generated.
Since I cannot replicate this myself, I'll need to take a look. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.
Low 31 May 2014 08:34
Oh, and take a look at this bug report. Does that sound related?
Joe Beaver 2 Jun 2014 08:32
Hi Low,
Sorry, the domain.dev/emc.dev thing was just a typo on my part. I do not think that the site url bug is related, but will look into that too.
I have sent the email with login details and how to replicate. Let me know if you need anything else.
Thanks,
Joe
Low 4 Jun 2014 07:47
For visibility: this was caused by a bug that will be fixed in the upcoming version.
Matt 31 Jul 2014 19:33
Upcoming version of Structure or Low Search and has it been released?
Low 31 Jul 2014 19:38
This particular bug was fixed in v3.1.6.
Matt 31 Jul 2014 19:45
I assume that you mean 3.1.6. My page_url tag is being replaced with the URL of the current search results page. I am on 3.1.6.
Low 31 Jul 2014 19:48
Yeah. 3.1.6. Could you please open a new thread and explain exactly what's happening including example code and output?
Matt 31 Jul 2014 19:53
Done.
https://getsatisfaction.com/low/topic...