Skip to content

Commit 5a9d1ab

Browse files
authored
fix(linter): handle page routing with trailing slash (#4061)
Fixes the trailing slash problem, so now [`/linter`](https://test.osv.dev/linter) and [`/linter/`](https://test.osv.dev/linter/) both resolve correctly.
1 parent ef24c79 commit 5a9d1ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ nav_external_links:
6767
url: https://google.github.io/osv-scanner/
6868
hide_icon: false # set to true to hide the external link icon - defaults to false
6969
- title: OSV-Linter
70-
url: https://test.osv.dev/linter
70+
url: https://test.osv.dev/linter/
7171
hide_icon: false # set to true to hide the external link icon - defaults to false

gcp/website/frontend_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def docs():
217217
return redirect('https://google.github.io/osv.dev')
218218

219219

220-
@blueprint.route('/linter')
220+
@blueprint.route('/linter', strict_slashes=False)
221221
def linter():
222222
return render_template('linter.html')
223223

0 commit comments

Comments
 (0)