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

Tips and Donation Feature - Request URL Issue #21123

Open
1 task done
burgundy77 opened this issue Sep 25, 2024 · 1 comment
Open
1 task done

Tips and Donation Feature - Request URL Issue #21123

burgundy77 opened this issue Sep 25, 2024 · 1 comment
Labels
needs:triage [triage] this needs to be triaged by the Ghost team

Comments

@burgundy77
Copy link

burgundy77 commented Sep 25, 2024

Issue Summary

Hello, I am new to ghost so please let me know if I can offer further clarification to my problem. Thank you.

I have a self-hosted ghost install, and I updated ghost to include the tips/donation feature.
When I visit: https://domain.com/blog/#/portal/support, there is an issue with these two requests:

session/ | 404 | fetch | FeedbackPage.js:12
create-stripe-checkout-session/ | 404 | fetch | FeedbackPage.js:12

and I see this message in the browser:

Sorry, that didn’t work.
Something went wrong, please try again later.

The request urls look like this:

Request URL: https://domain.com/members/api/session/
Request URL: https://domain.com/members/api/create-stripe-checkout-session/

however I am expecting them to be:

Request URL: https://domain.com/blog/members/api/session/
Request URL: https://domain.com/blog/members/api/create-stripe-checkout-session/

as https://domain.com/blog is what is setup in my ghost config

Also, if I visit https://domain.com/blog/#/portal/signup

this request, for example, returns 204

Fetchmember/ 204 fetch FeedbackPage.js:12

with the following request url:

Request URL: https://domain.com/blog/members/api/member/

I am trying to understand why /blog/ is not being included in the requests sent when visiting
https://domain.com/blog/#/portal/support

For example, if I run curl -i https://domain.com/blog/members/api/session/ I get a 204 response.

Thank you for your help.

  • Sally

Steps to Reproduce

Assumes self-hosted ghost installation where ghost is located here: https://domain.com/blog
Update ghost to include tips/donations
Expected request url to match and behave similarly to #/portal/signup

Ghost Version

5.92.0

Node.js Version

18.20.4

How did you install Ghost?

Digital Ocean Ubuntu

Database type

MySQL 8

Browser & OS version

No response

Relevant log / error output

No response

Code of Conduct

  • I agree to be friendly and polite to people in this repository
@github-actions github-actions bot added the needs:triage [triage] this needs to be triaged by the Ghost team label Sep 25, 2024
@burgundy77
Copy link
Author

To update - I am finding the same problem when I start fresh using the digital ocean droplet: https://marketplace.digitalocean.com/apps/ghost

I do the basic setup, with this type of structure: https://domain.com/blog, updating the config to include https://, and updating ghost to a newer version (in this case 5.95.0) which has the tip feature, connect stripe (not in test mode) and I include a button on the coming-soon page with:
https://domain.com/blog/#/portal/support

I click the button and the requests have the following urls and response:

Request URL: https://domain.com/members/api/session/
Request URL: https://domain.com/members/api/create-stripe-checkout-session/

session/ | 404 | fetch | FeedbackPage.js:12
create-stripe-checkout-session/ | 404 | fetch | FeedbackPage.js:12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs:triage [triage] this needs to be triaged by the Ghost team
Projects
None yet
Development

No branches or pull requests

1 participant