Skip to content

Fixes Figures URL wildcard placement - #284

Merged
johnbaldwin merged 1 commit into
masterfrom
john/fix-url-wildcard
Nov 18, 2020
Merged

johnbaldwin merged 1 commit into
masterfrom
john/fix-url-wildcard

Conversation

@johnbaldwin

Copy link
Copy Markdown
Contributor

The issue was that the router URLs were included after the wildcard url
pattern. This should fix the issue

The issue was that the router URLs were included after the wildcard url
pattern. This should fix the issue
Comment thread figures/urls.py
else:
urlpatterns.append(url(r'^api/', include((router.urls, 'api'), namespace='api')))

urlpatterns.append(url(r'^(?:.*)/?$', views.figures_home, name='router-catch-all'))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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'))

Comment thread figures/urls.py Outdated

# 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')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# url(r'^(?:.*)/?$', views.figures_home, name='router-catch-all')

Comment thread figures/urls.py Outdated
@@ -129,7 +129,7 @@
name='general-site-metrics'),

# Reroute all unmatched traffic to Figures main UI page

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Reroute all unmatched traffic to Figures main UI page

@johnbaldwin
johnbaldwin force-pushed the john/fix-url-wildcard branch from 1554552 to f72fe2e Compare November 18, 2020 12:25
@johnbaldwin

Copy link
Copy Markdown
Contributor Author

Thanks, Omar!

@melvinsoft melvinsoft left a comment

Copy link
Copy Markdown
Contributor

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.

@johnbaldwin
johnbaldwin merged commit 4488f21 into master Nov 18, 2020
@johnbaldwin
johnbaldwin deleted the john/fix-url-wildcard branch November 18, 2020 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants