Advanced Log-In & Sign-Up Flow ❺
Redirect users anywhere you want, after login
Last updated
Was this helpful?
Redirect users anywhere you want, after login
Last updated
Was this helpful?
LOCALIZATION - If you are using Webflow's new localization features, there may be impacts with this library. Most notably, selecting an alternate locale, and then logging in likely will not detect and preserve that alternate locale. Let us know in the forum if you encounter any conflicts, we'd like to see sites operating with this configuration.
The sign-up and log-in flow in Memberships BETA currently has a couple of limitations.
As of Jan-2023, you can;
Perform a , which redirects to the originally requested resource after login.
Redirect an to any static page on your site, including utility pages like the User Accounts page.
There are a few things you might want to do that you cannot do natively yet;
Redirect an to a Collection Item page.
Redirect an to a page, including query string params.
Handle a user's after sign-up specially, by redirecting them to a New User page.
Jan-2023 - Webflow has enhanced the Login Redirect Fallback feature.
This library is not attributes based, but rather has routing configuration options in its setup.
There are currently two configuration options;
routeAfterLogin
- specifies an optional path to redirect users after an explicit login.
Recognizes a special path of .
, which means, return to the current page.
routeAfterFirstLogin
- specifies an optional path for the first time a user logs in.
Add this script right after the library in your site-wide before HEAD custom code.
Configure the routing options to paths you prefer. In the example above, we've used /u/new
and /u/home
. Replace these with the URLs you want. If you do not want a special first-login route, you can remove that line.
See notes above.
First, add the library as detailed in .