PricingDocsAcademy
Bluesky ...
Fri, Dec 13, 9:00 AM

Xano redirect not working

  • /attachments/1312186460006252664/1312186460266561536/Screenshot_2024-11-30_at_11.39.14_AM.png

    Chris Laupama

    13 days ago

    I've created a redirect to check if my current user is logged in and if they are not then redirect to them to the login page, however it's not working and ALWAYS redirects them to the login page?
    Screenshot_2024-11-30_at_11.39.14_AM.png
  • Screenshot_2024-11-30_at_11.41.00_AM.png
  • Joce Nunes

    13 days ago

    Deactivate the serve side fetching
  • Chris Laupama

    13 days ago

    I did that, now what's happening is it's constantly refreshing and maxing out my API rate limit?
  • /attachments/1312186460006252664/1312200735852855347/Screenshot_2024-11-30_at_12.36.50_PM.png

    Chris Laupama

    13 days ago

    Changed it to just this, and it's still not working, it always redirects to the / route
    Screenshot_2024-11-30_at_12.36.50_PM.png
  • Chris Laupama

    13 days ago

    Cookies are definately set correctly, I am using them else where absolutely fine.

    But upon checking the current logged in user it's just redirecting to the / route each time.

    When I disable server side fetching any content on the page that utilises the /auth/me API ends up flickering for example I'm using the current logged in users email and name on the page, they just consistently flicker and re-load which ends up hitting the API rate limit.
  • Max

    13 days ago

    Your "else" needs to be falsy, but you have an empty string
    πŸ”₯1
    πŸ™πŸ½1
  • Chris Laupama

    13 days ago

    ah, so just give it "null"
  • let me try that
  • /attachments/1312186460006252664/1312271991981735966/Screenshot_2024-11-30_at_5.20.16_PM.png

    Chris Laupama

    13 days ago

    You legend, it worked. Just remade the formula, left the default "false" and it works like a charm.
    Screenshot_2024-11-30_at_5.20.16_PM.png
    πŸ™Œ1
  • Max

    13 days ago

    Nice πŸ’ͺ🏼😁

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code β€” but accessible to your entire team!

Try toddle β€” it's free!

Β© Copyright 2024 toddle. All rights reserved.