-
Couldn't load subscription status.
- Fork 571
Description
Current Behavior
Tried to put admin ui behind sso by using regular expression to match route. As far as I understand, i need to create a route for root with vars matching the apisix admin ui and admin api paths.
Minimal example that create the bug:
route: { "uri": "/*", "vars": [ [ "uri", "~~", "^/(ui|apisix).*$" ] ] }
I was not able to modify or create a new route that would accept the vars using the new dashboard / admin ui. So, i turned to the admin api and created a new route.
Now, trying to view the route in the new admin ui / dashboard ui, i receive a javascript error: a.trim is not a function
Seems like handling vars, atleast with medium complexity, is not working either way with the admin ui. Neither creating or viewing seems to work.
Seems like you guys are handling this field in the ui completely wrong :( The rest of the new ui is working much better than the old sone though. Great job!
Expected Behavior
Able to create, edit and view routes with vars.
Error Logs
No response
Steps to Reproduce
-
Try to input any vars into a route: Route is not able to be submitted.
-
Try to open a route with any vars: The route cannot be opened due to client side javascript error. Trying to call string method on an array.
Environment
- APISIX version (run
apisix version): 3.13
Metadata
Metadata
Assignees
Labels
Type
Projects
Status