Why does my login always redirect to the homepage instead of the original page?

Why does my login always redirect to the homepage instead of the original page?

jonahfernandez
Visitor
1 0 0

I've installed the Courses Plus app and am testing out viewing a course after purchasing it.

When I go to this page: www.famtograpy.com/apps/my/courses/list I am asked to log in and it ALWAYS redirects to the homepage after login, instead of loading the original page.

 

I've noticed this with other logins other than my courses page as well.

Is there a way to ensure that after login the original page URL is loaded instead of redirecting to the homepage?

Here's a Loom video of the issue:
https://www.loom.com/share/a811f543f05a4b678e56475522243225

Reply 1 (1)

PaulNewton
Shopify Partner
7722 678 1626

For app specific issues always contact the support of the apps developers directly.

 

That is an app proxy app url, /apps/my...../ ,  used by apps to surface you will have next to no control over it on the shopify side of things as the contents are controlled by the app itself. 

https://shopify.dev/apps/online-store/app-proxies 

 

For regular theme templates forms like customer account login see forums for using the return_to parameter

https://shopify.dev/themes/architecture/templates/customers-login#redirect-customers-on-login 

and many of the common forum discussions 

https://community.shopify.com/c/forums/searchpage/tab/message?q=redirect%20customer%20login&collapse... 

 

Getting the url of current page and ALL query parameters is commonly done with javascript. 

For liquid without query parameters:

{% assign current_url_without_parameters = request.host | append: request.path %}

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org