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

made ajaxLink property an absolute url #165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

panteliymas
Copy link

When a site is located in subdirectory but not the root folder (site.com/sub/ and not the site.com/) async widgets will send request to root (site.com/arrilot/load-widget and not site.com/sub/arrilot/load-widget) so widgets are not loaded. I changed ajaxLink property of JavascriptFactory to be absolu url that is generated by laravel automatically (e.g. from .env with APP_URL)

When a site is located in subdirectory but not the root folder (site.com/sub/ and not the site.com/) async widgets will send request to root (site.com/arrilot/load-widget and not site.com/sub/arrilot/load-widget) so widgets are not loaded.
I changed ajaxLink property of JavascriptFactory to be absolu url that is generated by laravel automatically (e.g. from .env with APP_URL)
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.

1 participant