Skip to content

Fix: Prevent AJAX requests from modifying browser history (#1210)#1237

Merged
radimvaculik merged 1 commit intomasterfrom
fix/1210-prevent-ajax-history-modification
Jan 6, 2026
Merged

Fix: Prevent AJAX requests from modifying browser history (#1210)#1237
radimvaculik merged 1 commit intomasterfrom
fix/1210-prevent-ajax-history-modification

Conversation

@radimvaculik
Copy link
Copy Markdown
Member

AJAX requests no longer modify the browser's history by default, preventing duplicate requests when users refresh the page after an AJAX operation.

Changes:

  • Modified RequestParams to accept optional options parameter
  • Updated NajaAjax.request() to set history: false by default
  • Allows overriding history behavior if needed via options

🤖 Generated with Claude Code

AJAX requests no longer modify the browser's history by default,
preventing duplicate requests when users refresh the page after
an AJAX operation.

Changes:
- Modified RequestParams to accept optional options parameter
- Updated NajaAjax.request() to set history: false by default
- Allows overriding history behavior if needed via options

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
@radimvaculik radimvaculik requested a review from f3l1x January 5, 2026 10:23
Copy link
Copy Markdown
Member

@f3l1x f3l1x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@radimvaculik radimvaculik merged commit 7d36e11 into master Jan 6, 2026
10 checks passed
@radimvaculik radimvaculik deleted the fix/1210-prevent-ajax-history-modification branch January 6, 2026 16:38
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.

2 participants