Skip to content

Commit 8dc7625

Browse files
committed
Merged in [18938] from rjsparks@nostrum.com:
Redirect requests for htmlized bcp or std subseries elements to the relevant rfc-editor info page. Fixes ietf-tools#3233. - Legacy-Id: 18947 Note: SVN reference [18938] has been migrated to Git commit 497a453
1 parent 3b84ea6 commit 8dc7625

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

ietf/doc/urls.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
url(r'^stats/newrevisiondocevent/data/?$', views_stats.chart_data_newrevisiondocevent),
6464
url(r'^stats/person/(?P<id>[0-9]+)/drafts/conf/?$', views_stats.chart_conf_person_drafts),
6565
url(r'^stats/person/(?P<id>[0-9]+)/drafts/data/?$', views_stats.chart_data_person_drafts),
66+
url(r'^html/(?P<name>bcp[0-9]+?)(\.txt|\.html)?/?$', RedirectView.as_view(url=settings.RFC_EDITOR_INFO_BASE_URL+"%(name)s", permanent=False)),
67+
url(r'^html/(?P<name>std[0-9]+?)(\.txt|\.html)?/?$', RedirectView.as_view(url=settings.RFC_EDITOR_INFO_BASE_URL+"%(name)s", permanent=False)),
6668
url(r'^html/%(name)s(?:-%(rev)s)?(\.txt|\.html)?/?$' % settings.URL_REGEXPS, views_doc.document_html),
6769

6870
url(r'^all/?$', views_search.index_all_drafts),

ietf/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,7 @@ def skip_unreadable_post(record):
775775
RFC_EDITOR_ERRATA_JSON_URL = "https://www.rfc-editor.org/errata.json"
776776
RFC_EDITOR_ERRATA_URL = "https://www.rfc-editor.org/errata_search.php?rfc={rfc_number}&amp;rec_status=0"
777777
RFC_EDITOR_INLINE_ERRATA_URL = "https://www.rfc-editor.org/rfc/inline-errata/rfc{rfc_number}.html"
778+
RFC_EDITOR_INFO_BASE_URL = "https://www.rfc-editor.org/info/"
778779

779780
# NomCom Tool settings
780781
ROLODEX_URL = ""

0 commit comments

Comments
 (0)