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

Triggering goal in JS results in error if Django APPEND_SLASH setting is True #164

Open
dboris opened this issue Jul 21, 2017 · 1 comment

Comments

@dboris
Copy link

dboris commented Jul 21, 2017

RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to /experiments/goal/upgrade_banner_click/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
[07-21 23:28:59] ERROR "POST /experiments/goal/upgrade_banner_click HTTP/1.1" 500 52303

@Vadim-Karpenko
Copy link

Vadim-Karpenko commented Oct 28, 2017

i create issue to fix that, you can manually copy code from experiments.js and make your own js file, and insert my fix #168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants