-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes Figures URL wildcard placement #284
Conversation
The issue was that the router URLs were included after the wildcard url pattern. This should fix the issue
@@ -139,3 +139,5 @@ | |||
urlpatterns.append(url(r'^api/', include(router.urls, namespace='api'))) | |||
else: | |||
urlpatterns.append(url(r'^api/', include((router.urls, 'api'), namespace='api'))) | |||
|
|||
urlpatterns.append(url(r'^(?:.*)/?$', views.figures_home, name='router-catch-all')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
urlpatterns.append(url(r'^(?:.*)/?$', views.figures_home, name='router-catch-all')) | |
# Reroute all unmatched traffic to Figures main UI page | |
urlpatterns.append(url(r'^(?:.*)/?$', views.figures_home, name='router-catch-all')) |
figures/urls.py
Outdated
@@ -129,7 +129,7 @@ | |||
name='general-site-metrics'), | |||
|
|||
# Reroute all unmatched traffic to Figures main UI page | |||
url(r'^(?:.*)/?$', views.figures_home, name='router-catch-all') | |||
# url(r'^(?:.*)/?$', views.figures_home, name='router-catch-all') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# url(r'^(?:.*)/?$', views.figures_home, name='router-catch-all') |
figures/urls.py
Outdated
@@ -129,7 +129,7 @@ | |||
name='general-site-metrics'), | |||
|
|||
# Reroute all unmatched traffic to Figures main UI page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Reroute all unmatched traffic to Figures main UI page |
1554552
to
f72fe2e
Compare
Thanks, Omar! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johnbaldwin Except Omar's comments, it looks good to me.
The issue was that the router URLs were included after the wildcard url
pattern. This should fix the issue