I have a problem that others may have encountered as well.
I have some parameters that are not at the end of the URL and should be optional. The problem is that when they are not present, they are removed correctly, but the leading slash remains. This makes the route invalid and results in the error message “Route not found.”
I have made a few simple attempts to fix this error, but I cannot resolve it conclusively. It would be important for me to have this error fixed. Currently, I have to pass dummy values.