Skip to content
FlashScan Pro

Prefill a QR generator via link: the ?content= parameter

A link that opens the generator already filled in: the ?content= parameter for sharing a ready-made QR code in an email signature or a doc page.

A QR code in one click

Sharing a QR code is good. Sharing a link that builds the QR code is better: the recipient types nothing, pastes nothing — they click, the generator opens already filled, they just download. That’s exactly what FlashScan Pro’s ?content= parameter does.

The syntax

Append ?content= followed by the text to encode to the app’s URL:

https://flashscanpro.com/en/?content=https%3A%2F%2Fexample.com

The ?text= parameter works identically — both are accepted. On load, the value is read, trimmed of stray whitespace, and injected into the standard generator’s content field; an empty parameter is ignored.

Special characters must be URL-encoded: space → %20, & → %26, ? → %3F. In JavaScript, encodeURIComponent does the work:

const url = 'https://flashscanpro.com/en/?content=' + encodeURIComponent('WIFI:T:WPA;S:MyBox;P:secret;;')

If the content already contains its own query string (like https://site.com/page?a=1&b=2), encoding is mandatory: a bare & would be read as a new parameter of the outer URL and truncate the content.

Use cases

  • Product documentation: a “Generate this page’s QR code” link prefilled with the doc URL.
  • Email signatures: support sends a link that instantly produces the appointment or tracking QR code.
  • Onboarding: a tutorial embeds a link that prepares the demo Wi-Fi code.
  • Customer support: instead of dictating a URL to type into the generator, send the link that contains it.

What to know on the privacy side

The parameter is read locally by the browser when the page loads — no application API receives the content to encode the QR code, which is produced entirely on the device. An honest caveat: like any URL, it is requested from the static host serving the page. For mundane content (public URLs, text) that’s inconsequential; for sensitive data, type the content by hand instead — see QR codes and personal data.