HomePhorge

Herald Rule Creation Page: fix Back button in some cases

Description

Herald Rule Creation Page: fix Back button in some cases

Summary:
If you want to create a new Herald Rule, sometime,
like for new "Object" Herald Rules, the Back button just
sends you to the very same page you already were.

The risk is that an employee could receive a specific
instruction, such as "Hey Alfreda, Go back, now"
and at this point Alfreda goes into an incredible loop
continuing to click the Back button until the duration
of the universe (since Phorge is so stable that it's able
to handle that "Back spike" forever - really).

https://we.phorge.it/T15184

Note that this also tries to avoid to change the base URI
to just go Back. For example, before this change, the Back
button was trying to send from /create/ to /new/, but
apparently they are just aliases.

Closes T15184

Test Plan:

  • Visit the page /herald/create/?adapter=commit
  • Click on "Object"
  • Click on "Back"
  • Verify that you only went back one screen, and not just forward in time

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: speck, tobiaswiese, Matthew, Cigaryno

Maniphest Tasks: T15184

Differential Revision: https://we.phorge.it/D25087

Details

Provenance
Valerio BozzolanAuthored on Mar 27 2023, 11:51 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rPf0618d54e8b5: Installation Guide: mention that git 2.5.0 (2015) is needed server-side
Branches
Unknown
Tags
Unknown

Event Timeline