Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Do not redirect user away from site after they submit a comment #2402

Merged

Conversation

deadlydog
Copy link
Contributor

This is a bug fix.

Summary

This fixes the issue of the user being redirected away from the website to a JSON file after submitting a comment, rather than an alert box showing up on the page letting them know if their comment was successfully submitted or not as intended.

Context

This bug was introduced by PR #2351 where it changed the site.staticman.branch variable path to site.comments.staticman.branch for staticman v2, but missed the naming refactor in staticman_v2.html.

@mmistakes mmistakes merged commit e8b36c9 into mmistakes:master Feb 17, 2020
jesuswasrasta pushed a commit to jesuswasrasta/jesuswasrasta.github.io that referenced this pull request Jul 8, 2020
mzaffran pushed a commit to mzaffran/mzaffran.github.io that referenced this pull request Jan 4, 2021
@deadlydog deadlydog deleted the FixSiteRedirectAfterSubmittingComment branch October 4, 2021 05:26
kaitokikuchi pushed a commit to kaitokikuchi/kaitokikuchi.github.io that referenced this pull request Sep 4, 2023
chukycheese pushed a commit to chukycheese/chukycheese.github.io that referenced this pull request Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants