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

Wagtailautocomplete not working in Production. #8

Open
adsk2050 opened this issue Oct 7, 2020 · 0 comments
Open

Wagtailautocomplete not working in Production. #8

adsk2050 opened this issue Oct 7, 2020 · 0 comments

Comments

@adsk2050
Copy link
Owner

adsk2050 commented Oct 7, 2020

In production, the site is at /mech/ instead of being at / (configured in apache conf)

But wagtailautocomplete urls are still using / as the root URL.

For example, when an AutocompletePanel for choosing staff loads in production, it sends queries on this URL:
https://mechweb2.centralindia.cloudapp.azure.com/admin/autocomplete/search/?query=&type=mechweb.StaffPage&exclude=
But it should send queries to this URL:
https://mechweb2.centralindia.cloudapp.azure.com/mech/admin/autocomplete/search/?query=&type=mechweb.StaffPage&exclude=
Notice the extra /mech in the bottom URL.

In fact changing the root URL has led to many problems similar to this one. How to figure it out? Help will be much appreciated.

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

No branches or pull requests

1 participant