Browse Source

chore(feedback): Org based route regexp should end with / (#56273)

Follows: https://github.com/getsentry/sentry/pull/56265
Follows: https://github.com/getsentry/sentry/pull/56264
Ryan Albrecht 1 year ago
parent
commit
33ebd7853f
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/sentry/web/urls.py

+ 5 - 5
src/sentry/web/urls.py

@@ -761,12 +761,12 @@ urlpatterns += [
         name="replays",
     ),
     re_path(
-        r"^replays/dead-clicks",
+        r"^replays/dead-clicks/",
         react_page_view,
         name="replays-dead-clicks",
     ),
     re_path(
-        r"^replays/rage-clicks",
+        r"^replays/rage-clicks/",
         react_page_view,
         name="replays-rage-clicks",
     ),
@@ -790,7 +790,7 @@ urlpatterns += [
     ),
     # User Feedback v2
     re_path(
-        r"^feedback/",
+        r"^feedback/(?P<feedback_id>\d+)/",
         react_page_view,
         name="feedback",
     ),
@@ -868,13 +868,13 @@ urlpatterns += [
                 ),
                 # User Feedback
                 re_path(
-                    r"^(?P<organization_slug>[\w_-]+)/user-feedback/",
+                    r"^(?P<organization_slug>[\w_-]+)/user-feedback/$",
                     react_page_view,
                     name="sentry-organization-user-feedback",
                 ),
                 # User Feedback v2
                 re_path(
-                    r"^(?P<organization_slug>[\w_-]+)/feedback/",
+                    r"^(?P<organization_slug>[\w_-]+)/feedback/(?P<feedback_id>\d+)/$",
                     react_page_view,
                     name="sentry-organization-feedback",
                 ),