Skip to content

Commit 1869d37

Browse files
authored
fix: Update idnits service URL (ietf-tools#4330)
This change introduces a new configuration option: `IDNITS_SERVICE_URL` to configure idnits service URL.
1 parent c0f1fd2 commit 1869d37

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

ietf/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ def skip_unreadable_post(record):
542542
IDTRACKER_BASE_URL = "https://datatracker.ietf.org"
543543
RFCDIFF_BASE_URL = "https://www.ietf.org/rfcdiff"
544544
IDNITS_BASE_URL = "https://author-tools.ietf.org/api/idnits"
545+
IDNITS_SERVICE_URL = "https://author-tools.ietf.org/idnits"
545546

546547
# Content security policy configuration (django-csp)
547548
CSP_DEFAULT_SRC = ("'self'", "'unsafe-inline'", f"data: {IDTRACKER_BASE_URL} https://www.ietf.org/ https://analytics.ietf.org/ https://fonts.googleapis.com/")

ietf/templates/submit/tool_instructions.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ <h3 class="mt-4">Upload screen</h3>
5151
<p>
5252
Before you submit your I-D, it is recommended that you check it for nits
5353
using the
54-
<a href="{{ settings.IDNITS_BASE_URL }}">idnits tool</a>.
54+
<a href="{{ settings.IDNITS_SERVICE_URL }}">idnits tool</a>.
5555
</p>
5656
<table class="table table-sm table-striped">
5757
<tbody>
@@ -216,4 +216,4 @@ <h3 class="mt-4">
216216
</tbody>
217217
</table>
218218
{% include "submit/problem-reports-footer.html" %}
219-
{% endblock %}
219+
{% endblock %}

ietf/templates/submit/upload_submission.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<hr>
2424
Before you submit your I-D, it is recommended that you check it for nits
2525
using the
26-
<a href="{{ settings.IDNITS_BASE_URL }}">idnits</a>
26+
<a href="{{ settings.IDNITS_SERVICE_URL }}">idnits</a>
2727
tool, and fix them.
2828
</div>
2929
<form method="post" enctype="multipart/form-data" class="my-3">
@@ -80,4 +80,4 @@
8080
$("#other-formats").collapse('show')
8181
});
8282
</script>
83-
{% endblock %}
83+
{% endblock %}

0 commit comments

Comments
 (0)