1👍
✅
The problem is that ^dashboard/.*$
is a greedy regular expression that will match everything that start with dashbord/
, including dashboard/completar-perfil/
.
So, you may need specify better the second regex. Do you really need .* ?
If it is the index of your dashboard, you could use ^dashboard/$
. Otherwise, you could put another word between dashboard and your greedy regex, like the following:
r"^dashboard/another-word/.*$"
Source:stackexchange.com