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

How to point to correct folder? #3

Open
Dar-us-Salam opened this issue Nov 5, 2016 · 1 comment
Open

How to point to correct folder? #3

Dar-us-Salam opened this issue Nov 5, 2016 · 1 comment

Comments

@Dar-us-Salam
Copy link

Hi, The form I have is located at https://dar-us-salam.com/kids/games-toys/ . When subscribing it displays this error "There was an error please try again." and in the browser inspect log it shows this:
404 Error
GET https://dar-us-salam.com/kids/modules/sendynewsletter/subscribe.php

The problem is that it should be going one folder back to this URL:
https://dar-us-salam.com/modules/sendynewsletter/subscribe.php

Can you please let me know where I can correct this?

@Dar-us-Salam Dar-us-Salam changed the title How to correct /modules/ folder How to point to correct folder Nov 5, 2016
@Dar-us-Salam Dar-us-Salam changed the title How to point to correct folder How to point to correct folder? Nov 5, 2016
@Dar-us-Salam
Copy link
Author

I figured it out. It was a line in the sendynewsletter.js file in the sendynewsletter\views\js folder.
I changed the line 13
url: '../modules/sendynewsletter/subscribe.php',

to the full URL:
url: 'https://dar-us-salam.com/modules/sendynewsletter/subscribe.php',

And now it works flawlessly. Alhamdulillah

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