Tap Request a quote below the checklist on our office cleaning page. The form opens with Office cleaning selected.

Scroll a little further down the same page and tap Request a cleaning quote. Same form. Same visitor. This time the dropdown says Choose a service.

Both links work. Both get you to the right page. If you start testing at the form, you’d never spot the difference.

What one link knows about the visitor

At Yoho Digital, we built and own Commercial Cleaning Berkshire, a site where people can request cleaning quotes for their workplace. Picture an office manager in Reading, looking for a cleaner on their phone.

They might know the office has 20 desks and nobody can let a cleaner in before 6pm. How many visits a week should they book? That might be exactly what they need help deciding.

That shaped the form. We ask for the premises postcode, because the work might take place somewhere other than the company’s registered office. Frequency and cleaning details are optional. At 430px wide and below, the fields stack in one column. And if someone follows the quote link under a particular service, we already have a sensible starting value for one of those fields.

Here’s what the two buttons in the main content actually send to the browser.

Button Destination What the visitor sees
Request a quote, under the checklist /quote/?service=office-cleaning Office cleaning
Request a cleaning quote, at the bottom /quote/ Choose a service

The first link comes from an Astro template that knows which service it’s rendering. The second comes from a shared component with a fixed destination. The form behaves exactly as written in both cases.

A query parameter was enough

The service pages and the form options use the same list of service identifiers. The office cleaning page can put office-cleaning in a link and the form can match it to an existing option. Here’s the selection logic in plain JavaScript.

const service = document.querySelector('select[name="service"]'); const requested = new URLSearchParams(window.location.search).get('service'); if (service && requested) { const matchesOption = Array.from(service.options).some( option => option.value === requested ); if (matchesOption) { service.value = requested; } } 

An old bookmark with an unknown service leaves the prompt in place. A visitor who opens the office cleaning link can still change their mind and select Commercial deep cleaning. And an office manager can forward the link to a colleague who’ll see the same starting choice. All the link carries is the service name.

Mobile quote form showing Office cleaning selected in an editable dropdown, above the optional frequency field

The test I’d add starts one page earlier

A test that opens /quote/?service=office-cleaning and checks the dropdown will pass. It can keep passing even if someone removes the query parameter from every link on the site.

I’d start on the service page and click each link by its visible name. This Playwright example assumes the site’s baseURL is configured.

import { test, expect } from '@playwright/test'; test.use({ viewport: { width: 390, height: 844 } }); for (const label of ['Request a quote', 'Request a cleaning quote']) { test(`${label} carries the office cleaning choice into the form`, async ({ page }) => { await page.goto('/office-cleaning/'); const main = page.getByRole('main'); await main.getByRole('link', { name: label, exact: true }).click(); const service = page.getByLabel('Cleaning service'); await expect(service).toHaveValue('office-cleaning'); await service.selectOption('contract-cleaning'); await expect(service).toHaveValue('contract-cleaning'); }); } 

I checked both paths on the live site. The checklist link carries the choice through. The bottom link loses it. The change I’d make is to let the shared component accept a destination from the service page, with /quote/ as its default for pages where the visitor hasn’t picked a service. The fix belongs in the link that knows where the visitor is.

There’s a similar distinction at the other end of the journey. Anyone can open a thank-you page. In this build, an accepted submission sets a one-time flag in the browser tab when analytics consent is present. The thank-you page consumes that flag before reporting the event. Refreshing the page can’t count the same flag twice. Whether the team received the email is a separate inbox check.

The original case study includes the mobile checklist, quote form and confirmation screenshots.

If you maintain a service website, try this on your phone. Take the first quote button, then go back and take the last one. When the form opens, what does it still know about the choice you just made?

I used ChatGPT to help draft this write-up from our case study and source code.