import wixUsers from 'wix-users'; import wixLocation from 'wix-location'; $w.onReady(function () { // Check if the current page is the subscribers page if (wixLocation.path.includes("/subscribers/")) { wixUsers.onReady(async function () { const user = wixUsers.currentUser; // Check if the user is logged in if (user.loggedIn) { // User is logged in, get email address const email = user.email; // User Email // Append email address to the URL const newURL = appendEmailToURL(email); // Redirect to the new URL wixLocation.to(newURL); } else { // User is not logged in, prompt to log in await wixUsers.promptLogin({ mode: 'login' }); } }); } }); function appendEmailToURL(email) { // Example URL to append the user email let originalURL = "https://souplessecycling.com/subscribers/"; // Replace "@" with "%40" in the email address const sanitizedEmail = email.replace("@", "%40"); // Append email address to the URL let newURL = originalURL + sanitizedEmail; return newURL; }
top of page

30 Day Cycling Challenge: Elevate Your Ride

Take your cycling to another level in 30 days with our free guide.

1 Topic and 1 Challenge Each Week

Each week we send an email with insightful information covering - Training Basics, Strength Training for Cyclists, Nutrition & Hydration and Maintenance Fundamentals. Each week has a new challenge to put your skills into practice.

2

Follow along with #30daystoSouplesse

Share your progress completing challenges and elevating your cycling with our hashtag. 

Souplesse Cycling Group Ride

Get Started for Free

Get Ready to Elevate your Ride

  • Facebook
  • Instagram
  • LinkedIn
bottom of page