From 8dc76252ebaf31290f791f95b05f35e2453c550f Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Mon, 12 Apr 2021 19:01:51 +0000 Subject: [PATCH] Merged in [18938] from rjsparks@nostrum.com: Redirect requests for htmlized bcp or std subseries elements to the relevant rfc-editor info page. Fixes #3233. - Legacy-Id: 18947 Note: SVN reference [18938] has been migrated to Git commit 497a453a93376488caed154b0611dc21dd78b956 --- ietf/doc/urls.py | 2 ++ ietf/settings.py | 1 + 2 files changed, 3 insertions(+) diff --git a/ietf/doc/urls.py b/ietf/doc/urls.py index bec7d3524..77acfb28c 100644 --- a/ietf/doc/urls.py +++ b/ietf/doc/urls.py @@ -63,6 +63,8 @@ urlpatterns = [ url(r'^stats/newrevisiondocevent/data/?$', views_stats.chart_data_newrevisiondocevent), url(r'^stats/person/(?P[0-9]+)/drafts/conf/?$', views_stats.chart_conf_person_drafts), url(r'^stats/person/(?P[0-9]+)/drafts/data/?$', views_stats.chart_data_person_drafts), + url(r'^html/(?Pbcp[0-9]+?)(\.txt|\.html)?/?$', RedirectView.as_view(url=settings.RFC_EDITOR_INFO_BASE_URL+"%(name)s", permanent=False)), + url(r'^html/(?Pstd[0-9]+?)(\.txt|\.html)?/?$', RedirectView.as_view(url=settings.RFC_EDITOR_INFO_BASE_URL+"%(name)s", permanent=False)), url(r'^html/%(name)s(?:-%(rev)s)?(\.txt|\.html)?/?$' % settings.URL_REGEXPS, views_doc.document_html), url(r'^all/?$', views_search.index_all_drafts), diff --git a/ietf/settings.py b/ietf/settings.py index 847511c6f..51eaecded 100644 --- a/ietf/settings.py +++ b/ietf/settings.py @@ -775,6 +775,7 @@ RFC_EDITOR_INDEX_URL = "https://www.rfc-editor.org/rfc/rfc-index.xml" RFC_EDITOR_ERRATA_JSON_URL = "https://www.rfc-editor.org/errata.json" RFC_EDITOR_ERRATA_URL = "https://www.rfc-editor.org/errata_search.php?rfc={rfc_number}&rec_status=0" RFC_EDITOR_INLINE_ERRATA_URL = "https://www.rfc-editor.org/rfc/inline-errata/rfc{rfc_number}.html" +RFC_EDITOR_INFO_BASE_URL = "https://www.rfc-editor.org/info/" # NomCom Tool settings ROLODEX_URL = ""