File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
- < h1 > Page not found</ h1 >
1
+ < div id ="not-found " style ="display: none; ">
2
+ < h1 > Page not found</ h1 >
3
+ < p > Error 404: The page you are looking for does not exist.</ p >
4
+ </ div >
5
+ < script >
6
+ // Did we land on a page that doesn't exist
7
+ // that starts with a uppercase letter?
8
+ // Send to a path with the first letter lowercase
9
+ const path = window . location . pathname ;
2
10
3
- < p > Error 404: The page you are looking for does not exist.</ p >
11
+ if ( path . length > 1 && / [ A - Z ] / . test ( path [ 1 ] ) ) {
12
+ const newPath = path [ 0 ] + path [ 1 ] . toLowerCase ( ) + path . slice ( 2 ) ;
13
+ window . location . replace ( newPath ) ;
14
+ } else {
15
+ document . getElementById ( 'not-found' ) . style . display = 'block' ;
16
+ }
17
+ </ script >
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ <h3>Pair: <a href="/{{ function[type_name].pair }}">{{ function[type_name].pair
82
82
{% for issue in function[type_name].issues %}
83
83
< li >
84
84
< a target ="_blank " href ="https://github.com/multitheftauto/mtasa-blue/issues/{{ issue.id }} ">
85
- Issue mtasa-blue #{{ issue.id }}
85
+ Issue #{{ issue.id }} (mtasa-blue)
86
86
</ a > : {{ issue.description_html }}
87
87
</ li >
88
88
{% endfor %}
You can’t perform that action at this time.
0 commit comments