appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.69k stars 3.75k forks source link

[Feature]: Enable an option to stop page navigation that was configured on page load #32524

Open pranavkanade opened 7 months ago

pranavkanade commented 7 months ago

Is there an existing issue for this?

Description

In edit mode, a page redirect function call in a JS function running on page load makes it impossible for a user to ever edit that page.

We need a better way to make sure users are given a chance to edit the page and not automatically redirect.

Steps To Reproduce

  1. Create 2 pages
  2. In one of the pages create a JS function that runs on a page load
  3. call redirect page function

Public Sample App

No response

Environment

Production

Severity

High (Blocker to building or releasing)

Issue video log

https://www.loom.com/share/b185790c42c94c7489193c8b9ab0bfcc

Version

1.9.19

Nikhil-Nandagopal commented 7 months ago

This is expected behavior so not a bug but it's certainly a behavior we can enhance to prevent this footgun.