Redirect Login

Brandarrow's official documentation for Redirect Login – Bubble.io Plugin.


Vitals

Description

The Redirect Login plugin by Brandarrow provides a seamless solution for protecting pages in your Bubble.io application. It automatically redirects unauthorized users to a login page and returns them to the originally requested page after successful authentication. No additional workflows or logic are required on either the protected or login pages.

Key Features

  • Dynamic Login Redirection: Captures the origin page and redirects users back after login.

  • No Workflow Required: Handles redirection internally without additional workflow setup.

  • Custom Access Conditions: Define rules like "User must be logged in" or "User must have the role of 'Staff'" using conditional logic.

  • Reusable Across Pages: Apply the plugin to multiple protected pages with context-aware behavior.

Price

One-Time $5

Installation

Add the plugin to your Bubble app via the official plugin marketplace.

Demo & Editor

Demo Editor


Instructions

1

Add the Redirect Login Element

Place the plugin’s element on each page you want to protect.

2

Define Access Criteria

Set access conditions in the Bubble property editor, such as Current User is logged in or Current User's role is "Staff".

3

Specify Login Page URL

Define the login page URL, either statically (e.g., yourapp.com/login) or dynamically based on your app’s logic.

4

Copy to Login Page

Right-click the Redirect Login element and copy it to your login page to enable redirection back to the original page after login.


Component

Element
  • Redirect Login: The primary element used to enforce access control and manage redirections.

Actions

None

Events

None

Data calls

None


Common Issues & Troubleshooting

Issue
Cause
Solution

User Not Redirected After Login

Missing element or incorrect login page URL

Ensure the Redirect Login element is present on both the protected page and the login page. Verify that the login page URL is correctly specified in the plugin settings.

Custom Role Not Working

Incorrect condition logic or database mismatch

Double-check the condition logic in the Bubble property editor (e.g., Current User's Role is "Staff"). Confirm that the user’s role is correctly set in the database.

Infinite Redirect Loop

Login page is also protected

Ensure the login page is not protected by the Redirect Login element. Adjust condition logic to exclude the login page from protection.

Plugin Not Functioning

Incorrect installation or hidden/disabled element

Verify that the plugin is installed correctly from the Bubble Plugin Marketplace. Check that the Redirect Login element is not hidden or disabled on the page.


Version
Status
Date
Changes

v1.0.0

Shipped

1/6/25

  • Initial release

Need Help?

Help & Support

Last updated

Was this helpful?