Hi!
I’m trying to redirect store’s default registration url “/account/register” to a custom page/url I’ve created, but it won’t work.
I’ve already read the url redirect documentation, and the only prefixes that can’t be used on redirect are /apps, /application, /cart, /carts, /orders, /shop, or /services
However, my redirect won’t work.
Does anyone know why?
An alternative
a bit more info. We want to redirect people to a custom page after they registered. It works with already existing accounts after login but not through a new registration
@BisonaClaudia Yeah, that’s a common issue. Shopify doesn’t allow redirects for certain system URLs like /account/register, /account/login, and a few others because they’re part of the platform’s built-in customer authentication flow.
Even though it’s not listed among the blocked prefixes, Shopify still treats those account URLs as protected. The redirect tool won’t override them.
If you want to send visitors to a custom registration page, the usual workaround is to update all “Sign Up” buttons or links in your theme to point to your new URL manually instead of relying on a redirect.
Hope that clears things up!
2 Likes
Thanks for the reply.
The idea was to just redirect specific customers, through a QR code they receive from us. So they’d be let to a site just for them to see.
It all works with already registered users but not with new registrations. After they registered and are logged in, they can scan the qr code again, then it would work.
We were told to use some sort of apps for shopify that you can alter the registration page with. That some offer a redirect url.
Do you have any experience with this?
@BisonaClaudia Yeah, that’s actually a pretty common limitation. Shopify doesn’t allow full control over the /account/register flow because it’s handled server-side, not through the theme, so normal redirects or dynamic routing don’t trigger there.
Some apps do allow modifying or extending the registration process like adding custom fields or post signup redirects, but it really depends on how your customer flow is structured. For what you’re describing, directing specific users who register through a QR code to a private page, there’s a creative workaround that can achieve that without breaking Shopify’s core login system.
You’re definitely thinking in the right direction though, just needs a slight adjustment to make it work smoothly.
1 Like
I see. Much appreciated
Do you have any idea how we can achieve this? I don’t know anything about coding. We had major help from the devs of the courses app who handled so much for us when it came to coding. But we hit a limit here. They made it work, so that people who are registered already, get sent to the courses automatically after clicking the custom link or using the code. This works perfectly fine. If there’s no other way or too complex, we will have people scan, register and then just scan again, that way they’ll be redirected to the right page for sure.
I’ve seen a couple of people here struggling with this.
Hey @BisonaClaudia
Thanks for posting this to the Shopify Community.
Shopify doesn’t allow redirects for certain core customer account URLs, including /account/register, /account/login, and /account. These URLs are reserved for Shopify’s built-in customer authentication system, so manual redirects created through the URL Redirects section won’t apply to them.
Alternative Solution:
You can still achieve this by adding a small code snippet:
-
Go to Online Store → Themes → Edit Code → customers/register.liquid
-
At the very top of the file, add this line:
<script>
window.location.href = '/your-custom-page';
</script>
Replace /your-custom-page with the URL of your new registration page.
This will automatically redirect anyone who tries to access /account/register to your custom page instead.
Note: Avoid creating an infinite loop by ensuring the custom page is not set to redirect back to /account/register.
Waiting to hear back from you. If this was helpful, don’t forget to like it and mark it as a solution.
Thanks
1 Like
@BisonaClaudia I’ve worked on a few similar setups where users needed to be redirected automatically after registering or logging in, especially with custom course integrations. From what you described, it sounds like a small tweak in your current flow or app settings can get this working exactly how you want, without needing deep coding.
I can help you review the setup and make the proper adjustments so users register once and go straight to the correct course page every time. If you’d like, I can guide you through the handle the fix directly to save you time. Would that be okay with you?
1 Like
Hi there,
thanks a lot! We aim to only redirect the people who went to the registration page through the link / QR code we sent out, not all customers. Basically we’d need 2 separate ways. One for customers to be led to a specific page after registration (the ones who come from a link / QR code we provide) and the regular customers, who make an account on their own.
We’d like to automate this, as we don’t have the capacities to assign customers manually.
This was basically the idea behind it but if we can’t find a workaround, we will keep it the way it is now.
People scan the QR code, register for the first time, get led to the main page and just have to scan the code again - now that they’re logged in. Then the redirection works.
You can’t redirect /account/register with Shopify’s URL redirects-it’s part of the protected authentication system.
Two working solutions:
-
Edit theme links - Change all “Create Account” links in your theme to point directly to your custom page URL
-
Add JavaScript redirect - Insert this in your customers/register.liquid template:
javascript
window.location.href = '/your-custom-url';
If you want to redirect users after they register, use a login link with a return URL parameter: /account/login?return_url=/your-page
@BisonaClaudia Oh thanks for the clarification. I understand that the goal is to have two separate flows: one for users coming through the QR code or special link, who should be redirected automatically after registration, and a standard flow for regular users creating accounts on their own. The current workaround requiring users to scan the QR code twice is not ideal, and we can definitely streamline this. On Shopify, this can be handled by detecting the registration source, through URL parameters, hidden fields, or automated tagging, so the correct redirect happens automatically the first time, without manual intervention. I’d be happy to review your setup and implement this adjustment to make the process seamless for your users. Let me know if that would be okay with you!
Hi @BisonaClaudia , The new system isn’t fully cooked.
There is {{ routes.storefront_login_url }}, or the return_to param for legacy forms.
Really just use the legacy customer system while it’s still available when you need actual granular control of the registration process.
The new system still have incredibly poor parity compared to the flexibility of the legacy system.
Though there are supposed to be facilities for this
As for conditional routes this can come down to setting a cart-attribute with js to use in a liquid rendered meta-refresh redirect, or cookie & javascript, reading the url params etc
Hello @BisonaClaudia
-
From your Shopify admin, go to Online Store > Themes.
-
On your current theme, click the Actions button (with the three dots) and select Edit code.
-
In the folder list on the left, find and open the Templates directory. Click on the file named customers/register.liquid.
-
Paste the following code snippet at the very top of this file, before any other code:
<script type="text/javascript">
window.location.href = "/pages/your-custom-page-url";
</script>
- Important: Replace /pages/your-custom-page-url with the actual URL of the page you want to redirect to.
Click Save. Now, anyone who tries to visit /account/register will be immediately redirected.
Thank You!