This doesn’t seem to work and instead sends the user to the orders page. The docs say that it can only handle redirects to the “online store”, which makes sense, but I feel like this should be an option.
@Kenza_Iraki, just to clarify, we have already tried using this method which works if a customer is already logged in, but does not seem to work for redirecting customers after login. Can you confirm if that’s the expected behavior or if there’s something we’re missing here? Thanks!
You’re right, the docs are wrong here, because routes.account_url contains query params, making the resulting url invalid. We’ll look at improving this. In the meantime, you can either:
Link to your full page extension directly via the online store header menu links (Admin → Content → Menus)
Strip the query params out of routes.account_url, add the path to your full page extension, and then append the query params back at the end. Example liquid code:
Hey, thanks for taking the time to post relevant documentation as well as those corrections. We are familiar with the issue regarding the query params, we ended up just doing something like:
Everything is working now as expected. I swear I already tried linking directly to the full page extension even if the customer isn’t logged in, and was just getting redirected to the orders page after login. But I suppose either something got fixed, or more likely, I just wasn’t doing something right.
Either way, things are looking good, and thanks again.