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

Adding notes to submissions doesn't work when using a KOBOCAT_ROOT_URI_PREFIX #405

Open
jeverling opened this issue Jan 3, 2018 · 0 comments · May be fixed by #406
Open

Adding notes to submissions doesn't work when using a KOBOCAT_ROOT_URI_PREFIX #405

jeverling opened this issue Jan 3, 2018 · 0 comments · May be fixed by #406

Comments

@jeverling
Copy link
Contributor

When kobocat is being run under a URI prefix instead of a subdomain, it is not possible to add/edit notes for submissions. The API endpoint is hardcoded and will 404.
I will change that and create a PR. I need to get the KOBOCAT_ROOT_URI_PREFIX into the scope available to onadata/apps/viewer/static/js/instance.js.
I think the best way is to create a template context processor to include KOBOCAT_ROOT_URI_PREFIX in the template context and then inject the JS var into base.html.

This is related to #298

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 a pull request may close this issue.

1 participant