Business · Product · Technology · AI

Preserve marketing CTA context through query encoding

A Movo-X country/city CTA case evaluating three inline link expressions, preserving synthetic punctuation and Unicode in prefilled text while keeping phone-only links and message delivery distinct.

Work directly with Omer Muneer Qazi · Reviewed 30 November 2026

The scenario: context can be lost before a conversation starts

A location-specific call to action can carry the selected place into a prefilled message. If punctuation or query delimiters are handled incorrectly, that context can be split into another parameter or changed before the person reaches the intended conversation. A plain contact link can intentionally carry less context.

This case evaluates three inline Movo-X marketing-link expressions from pinned country and city pages. One TypeScript case uses synthetic display text, including punctuation and Unicode, and parses the generated URLs locally. It does not render an anchor, activate WhatsApp or send a message.

Inventory the actual link variants before testing one assumed shape

The selected country source contains a prefilled country-message expression and a phone-only expression. The selected city source contains a prefilled city-and-country expression. The extraction records all matching inline /send/ template expressions in those two page files.

These are three selected source expressions, not an inventory of every CTA in the repository or current site. Other components, destinations and mobile behaviors have separate coverage. Naming the variants first keeps a test from silently requiring every contact link to include the same fields when the source has different intended affordances.

Preserve the expression while isolating its evaluation

A syntax-tree preparation selects each exact href expression and places it in a small synthetic wrapper with supplied country/city values. It also retains source and expression hashes. The wrapper does not import the page’s React rendering dependencies or a provider-sending module.

This tests the expression’s construction under selected inputs. It does not prove the expression is visible, enabled, reachable by keyboard or correctly attached to a rendered link. The underlying application source remains unchanged, and no original helper is replaced with a newly invented URL implementation.

Test delimiters and Unicode inside the prefilled text

The synthetic country and city strings include ampersands, plus signs, a slash, a question mark and accented characters. The source expressions encode the message text. The case parses each result and checks that the decoded text equals the intended full message rather than a truncated or split value.

It also checks the selected prefilled URLs’ origin, path and query-key set. That makes the assertion stronger than merely finding the place name somewhere in a string. It remains a bounded sample, not exhaustive fuzzing of every character, URL length or destination-client interpretation.

Accept the phone-only variant according to its own contract

The country’s phone-only expression produces the selected destination and a phone parameter without a text parameter. The case checks that explicitly. Its absence of prefilled text is a different source variant, rather than proof that the prefilled expression failed encoding.

A product can choose different context for a header action and a plain contact reference. Whether that difference is the desired experience needs its own product/UI review. The source test does not assign conversion value, infer visitor intent or certify the current recipient from a numeric phone string.

Keep a well-formed contact URL separate from a reachable recipient

The fixture checks the expected destination host/path and a numeric phone value shape. It does not confirm ownership, availability, current account status or that a person can complete a conversation through that destination. Those facts are outside string construction.

No real contact was queried and no URL was opened. The test therefore supplies no delivery, read, response-time or conversion claim. If the product requires those outcomes, measure the intended interaction with appropriately authorized test contacts instead of treating a parsed link as a successful conversation.

Keep marketing link construction separate from backend sends

The selected inline expressions construct URLs; the harness never invokes a notification provider or backend message queue. A similarly named messaging file elsewhere in a repository is not automatically the correct test dependency for a marketing anchor. Follow the actual page imports and call path.

This matters when reproducing behavior safely and accurately. The fixture needs synthetic text and a URL parser, not an authenticated recipient, patient details or a provider account. It establishes the chosen link representation while message composition, user action and any downstream delivery retain their own evidence.

Accept the rendered control and navigation separately

The source page also has layout, link text and surrounding content, none of which is rendered by this expression wrapper. A full acceptance should observe the actual anchor, focus behavior, mobile presentation, destination handling and return/cancellation behavior in the intended environment.

The encoding case cannot prove those interface outcomes. It also does not verify the underlying country claims or marketing copy. Preserve the expression result alongside a later rendered artifact and interaction record so the engineering handover can distinguish correct context encoding from the rest of the user journey.

A marketing CTA engineering handover

Retain the three expression hashes, exact synthetic inputs and decoded query assertions. Record which variants intentionally prefill context and which are contact-only. Add current recipient configuration and authorized interface checks where required, without silently substituting provider calls for link evaluation.

For a CTO, the useful result is an explainable entry point: selected place context survives the tested encoding, separate variants have explicit query shapes and no construction test is mislabeled as message delivery. That boundary supports reliable conversion work while current UI quality and actual conversation outcomes remain independently verifiable.

Compare the reviewed boundaries

A CTA construction result has a specific scope

On smaller screens, scroll across to compare every column. Keyboard users can focus the table and use the arrow keys.

Variant or boundaryScoped observationSeparate acceptance
Prefilled country linkSynthetic country survives decoded textRendered visibility and user action
Prefilled city linkSynthetic city/country survive one text parameterActual destination-client behavior
Phone-only country linkNo text parameter emittedDesired product context
Destination shapeSelected host/path and numeric phone shapeCurrent recipient ownership/reachability
Message outcomeNo message was sentDelivery, reply and conversion evidence

Illustrative control flow

Pseudocode summarizing the decision boundary. It is not copied production code or a deployment instruction.

urls = evaluate_the_exact_inline_expressions(synthetic_context)
for url in urls:
    inspect_origin_path_and_query_keys(url)
    if url.has_prefilled_text:
        compare_decoded_text_with_intended_context(url)
# URL construction, rendered interaction and message delivery are separate results.

About this engineering series

Written by Omer Muneer Qazi from a review of Movo-X implementation and dated engineering records. This article explains source behaviour and historical observations; current production, clinical outcomes and store availability require their own verification. Examples are synthetic and proposed test cases are identified as such.

Explore the Movo-X engineering series → · Related implementation experience →

Discuss a similar engineering problem

Send the workflow, current platform and the decision your team needs to make. I can help define an implementation or review scope with concrete acceptance evidence.

Discuss your project on WhatsApp ↗
WhatsApp Omer about this project ↗