Closed Bug 532216 Opened 16 years ago Closed 15 years ago

Distinguish between searches from the text box and via clicks with a URL parameter

Categories

(support.mozilla.org :: Knowledge Base Software, task, P2)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cww, Assigned: jsocol)

Details

(Whiteboard: sumo_only)

Attachments

(2 files, 1 obsolete file)

Now that we have the new start page, the clickable searches dominate searches. We should distinguish what people search for (typing) vs what they click on by adding a URL parameter so we can track on omniture.
What's a good target milestone for this?
Assignee: nobody → paulc
This is essentially the same as bug 532214, and they're both trivial to implement. Adding to 1.5.1 for now.
Severity: normal → minor
OS: Linux → All
Priority: -- → P2
Hardware: x86 → All
Target Milestone: --- → 1.5.1
I tried to fix bug 532214 and accidentally started patching this, so -> me. Sorry to step on your toes, Paul.
Assignee: paulc → james
This adds a "qs" parameter, roughly for "query source" that's either 's' for 'search' or 'h' for 'home'. It doesn't add the parameter to the sidebar, but that's easy.
Attachment #417505 - Flags: review?(paulc)
Comment on attachment 417505 [details] [diff] [review] extra parameter on searchs WFM.
Attachment #417505 - Flags: review?(paulc) → review+
Whiteboard: update sidebar search
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Looks good on https://support-stage.mozilla.org/en-US/kb/: <a class="small" href='/search.php?q=clear+cache&amp;where=all&amp;locale=en&amp;qs=h'>clear cache</a>, Should I wait for the sidebar to get the parameter added?
Changed in the sidebar.
Whiteboard: update sidebar search → update sidebar search on prod
I think it's cache, try logging in.
Attached patch fix for mozgn2 (obsolete) — Splinter Review
This makes mozgn2 use the sidebar module. Before reviewing, remember assign the sidebar search module to theme=mozgn2.css
Attachment #417559 - Flags: review?(james)
Attachment #417559 - Flags: review?(james) → review-
Comment on attachment 417559 [details] [diff] [review] fix for mozgn2 This is a big change and rather outside the scope of this bug. Fixing mozcommon/searchbar.tpl is the correct solution here.
Adding the qs=s parameter to the form in mozcommon/searchbar.tpl, which is should take care of this most places.
Attachment #417559 - Attachment is obsolete: true
Attachment #417808 - Flags: review?(paulc)
Comment on attachment 417808 [details] [diff] [review] mozcommon/searchbar.tpl patch Still, we should try and use either the DB or the template to avoid situations like this in the future. What do you think we should do?
Attachment #417808 - Flags: review?(paulc) → review+
r57918 (In reply to comment #14) > Still, we should try and use either the DB or the template to avoid situations > like this in the future. What do you think we should do? I disagree. I don't think moving a large, common section of the template into the database is a reasonable solution here.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
What I'm saying is that we currently have the sidebar in the template in some cases and not in others. We should make it consistent, whether it is in the DB or in the template.
Verified FIXED on http://support-stage.mozilla.org/en-US/kb/Ask+a+question; now results in URLs like http://support-stage.mozilla.org/search.php?where=all&locale=en-US&qs=s&q=firefox+crashes&sa=. (Tested from the sidebar on that results page, too.)
Status: RESOLVED → VERIFIED
Whiteboard: update sidebar search on prod → sumo_only
Status: VERIFIED → RESOLVED
Closed: 15 years ago15 years ago
Reopening to commit to branches/1.5.1_temp. Will re-resolve after patches are committed.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
On branch, r62428
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Verified, FIXED.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: