Skip to content

fix: allow full PDF download via free query param#377

Open
fellnerse wants to merge 4 commits intodevfrom
fix/free-query-param-full-pdf
Open

fix: allow full PDF download via free query param#377
fellnerse wants to merge 4 commits intodevfrom
fix/free-query-param-full-pdf

Conversation

@fellnerse
Copy link
Member

Summary

  • Restore the ability to generate a full PDF when the ?free query parameter is present in the URL
  • Uses the in operator to check for parameter presence rather than truthiness, so ?free, ?free=, and ?free=1 all work correctly
  • Safely handles undefined $route or query with optional chaining and nullish coalescing

Test plan

  • Visit the analyze page without ?free → sample button should generate a sample PDF
  • Visit with ?free → sample button should generate a full PDF
  • Visit with ?free= → full PDF
  • Visit with ?free=1 → full PDF

@gitguardian
Copy link

gitguardian bot commented Mar 15, 2026

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
While these secrets were previously flagged, we no longer have a reference to the
specific commits where they were detected. Once a secret has been leaked into a git
repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Restore the ability to generate a full PDF when the ?free query
parameter is present in the URL. Uses the `in` operator to check
for parameter presence rather than its value, so ?free, ?free=,
and ?free=1 all work correctly.
@fellnerse fellnerse force-pushed the fix/free-query-param-full-pdf branch from 3f04efb to be17c6d Compare March 15, 2026 17:23
@github-actions
Copy link

github-actions bot commented Mar 15, 2026

Visit the preview URL for this PR (updated for commit a69eb0b):

https://whatsanalyze-80665--pr377-fix-free-query-param-34vsso6f.web.app

(expires Sun, 22 Mar 2026 17:52:25 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 5796a863d3a1b99df3fcb31feec7a39514d97aa4

Replace ?. and ?? with plain JS to ensure compatibility with
older mobile Safari versions that Nuxt 2 may not transpile for.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant