Bug on web console router params
Summary
Some paths included on the router configuration contain params which allow the user to include unwanted typos on the path and it would still load the corresponding component rather than showing the NotFound
message.
Current Behaviour
This is happening in particular with:
- The
:cluster
param (used to separate general Backups from Cluster specific backups) - The
:action
param (used to differentiate if the form should load on Create or Edit mode)
Steps to reproduce
- Go to the Cluster Backups tab and click on any Backup to open its details
- Replace the
/cluster/
word on the path by any other word - The Backup Details will still open
Expected Behaviour
The path should be considered as wrong and show a NotFound
message
Possible Solution
Set names for every router path and use that name to differ between backup views and form actions
Environment
- StackGres version:
0.9.4
/1.0-alplha1
Edited by Luis Garcia