
How to Redirect Users After Login on Wix & Wix Studio (Step-by-Step Guide)
If you’ve ever wanted your Wix or Wix Studio website to automatically send visitors to a different page after they log in, you’re not alone. By default, Wix keeps users on the same page where they logged in—but what if you want them to land on your shop page, account page, pricing plan page, or any other specific page?
T
hat’s exactly what we’re going to cover in this guide, brought to you by Wix Ideas—your go-to resource for Wix tutorials, tips, and website templates.
Why Redirect Users After Login in Wix?
Redirecting users after login is more than just a convenience—it’s a powerful conversion optimization tool. Imagine:
A customer logs in and is instantly sent to your shop page, ready to browse and buy.
A member signs in and is directed straight to their account dashboard.
New sign-ups are automatically sent to your pricing plans page, encouraging upgrades.
At Wix Ideas, we use this feature often for eCommerce websites, membership platforms, and service-based sites built with Wix and Wix Studio.
The APIs You Need in Wix (or Wix Studio)
To set this up, you’ll be working with two simple Wix APIs:
Wix Members Frontend API – This detects when a user logs in.
Wix Location Frontend API – This allows you to redirect users to a new page.
The best part? You only need a few lines of code in your masterPage.js file. This ensures the login redirect works across your entire website, no matter where the user signs in.
Step-by-Step: How to Redirect Users After Login
Here’s a simplified breakdown of what we do at Wix Ideas when setting this up:
Open your Wix (or Wix Studio) editor and head to the Code Files panel.
Select masterPage.js so the code applies across your whole site.
Import the Wix Members Frontend API at the top of your code.
Listen for the onLogin event (this triggers right after a user logs in).
Import the Wix Location Frontend API to handle the redirect.
Add your page slug (prefix), so users get redirected correctly without relying on full URLs.
For example, if your shop page slug is /shop, you can redirect members straight there after login.
Why Use a Slug Instead of a Full URL?
At Wix Ideas, we recommend using slugs (like /shop or /pricing) rather than full URLs. That way, if you ever change your domain name, your login redirect will continue working without any extra updates.
Live Example: Redirecting to a Shop Page
We tested this on a demo Wix website. Whether we logged in from the homepage, the terms & conditions page, or even the refund policy page, the redirect always worked—sending us straight to the shop page.
It’s clean, it’s simple, and it’s a game-changer for Wix and Wix Studio websites.
Learn More With Wix Ideas
If you found this tutorial helpful, you’ll love what else we offer at Wix Ideas.
📖 Explore more step-by-step tutorials: Wix Ideas Tutorials
🛍️ Shop Wix & Wix Studio templates: Wix Ideas Template Shop
💼 Get a free quote for your new or existing website: Request a Quote
Final Thoughts
Redirecting users after login on Wix or Wix Studio is one of those “small tweaks” that can make a big difference in user experience and conversions. Whether you’re running an eCommerce store, a membership site, or a service business, guiding your visitors to the right page immediately keeps them engaged.
At Wix Ideas, we’re committed to helping you get the most out of your Wix and Wix Studio websites. Be sure to check out our tutorials, shop our ready-to-use templates, and subscribe to the Wix Ideas YouTube channel for fresh tips every week.
PREVIOUS
NEXT

