Demonstration
Tutorial
- Quick start
- Features overview
- Configuration
- Scenarios
Setup & Configuration
Configuration for the webflow-membership-routing library is all contained in the site-wide <head> custom code area;
<!-- Membership routing -->
<script type="module">
import { WfuMembershipRouting } from 'https://cdn.jsdelivr.net/gh/sygnaltech/webflow-util@3.361/src/modules/webflow-membership-routing.js';
new WfuMembershipRouting({
routeAfterLogin: "/u/home",
routeAfterFirstLogin: "/u/new"
}).routeUser();
</script>
Settings
- Set routeAfterLogin to any valid site path you want users to go at login.
- > Useful for a members-only homepage
- > You can use "." as a setting to return them to the page they initiated the login from.
- Set routeAfterFirstLogin to any valid site path you want users to go at first log-in.
- > Useful for introducing the site, resource, and new membership features.
Limitations
- Currently, there is no ability to login-redirect on the basis of access groups.
Resources