Match Path retains rewrite path after Clear #22

Closed
opened 2026-04-05 17:00:33 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @deskstorm on 4/2/2026

Describe the Bug

Set a Match Path and then a rewrite path (only available after setting match path).
After changing elements, i tried to get rid of the Match Path using Clear button.
After saving, the rewrite path was still applied even though the rewrite field was disabled and looks cleared

Environment

  • OS Type & Version: (debian 13)
  • Pangolin Version: 1.16.2
  • Gerbil Version: 1.3.0
  • Traefik Version: 3.6.10
  • Newt Version: 1.10.3

To Reproduce

  1. In Target (Advanced Mode), set a Match path "/" (or anything)
  2. Set rewrite path as "/example" (or anything)
  3. Save Targets
  4. refresh page and return to edit same target.
  5. Remove Match Path by "Clear" button
  6. Rewrite path becomes disabled and looks cleared.
  7. Save and URL still using rewrite path or fails.

Expected Behavior

As editing Rewrite path is dependant on the Match path, clearing the Match path should warn then clear the Rewrite path field as well.
Alt option: Or if rewrite path is available without a match path - it defaults to "/" on match path and then uses set rewrite path set

*Originally created by @deskstorm on 4/2/2026* ### Describe the Bug Set a Match Path and then a rewrite path (only available after setting match path). After changing elements, i tried to get rid of the Match Path using Clear button. After saving, the rewrite path was still applied even though the rewrite field was disabled and looks cleared ### Environment - OS Type & Version: (debian 13) - Pangolin Version: 1.16.2 - Gerbil Version: 1.3.0 - Traefik Version: 3.6.10 - Newt Version: 1.10.3 ### To Reproduce 1. In Target (Advanced Mode), set a Match path "/" (or anything) 2. Set rewrite path as "/example" (or anything) 3. Save Targets 4. refresh page and return to edit same target. 5. Remove Match Path by "Clear" button 6. Rewrite path becomes disabled and looks cleared. 7. Save and URL still using rewrite path or fails. ### Expected Behavior As editing Rewrite path is dependant on the Match path, clearing the Match path should warn then clear the Rewrite path field as well. Alt option: Or if rewrite path is available without a match path - it defaults to "/" on match path and then uses set rewrite path set
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#22