File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
66 < meta name ="robots " content ="noindex, nofollow ">
77 < title > Page Not Found - SaveDesktop</ title >
8- < link rel =" stylesheet " href =" css/html- style.css " >
8+ <!-- Define a CSS style of this page -- >
99 < style >
1010 body {
1111 font-family : Arial, sans-serif;
4545 color : # 777 ;
4646 }
4747 </ style >
48+ <!-- JS for redirecting to the correct wiki page (if the user enters an incorrect URL) -->
4849 < script >
4950 document . addEventListener ( "DOMContentLoaded" , function ( ) {
5051 var currentUrl = window . location . href ;
5354 . then ( response => {
5455 if ( response . status === 404 ) {
5556 var urlParts = currentUrl . split ( "/" ) ;
56- urlParts [ urlParts . length - 1 ] = 'en' ; // Nahradíme poslední část URL
57+ urlParts [ urlParts . length - 1 ] = 'en' ; // Replace with 'en'
5758 var newUrl = urlParts . join ( "/" ) ;
5859 window . location . href = newUrl ;
5960 }
6364 } ) ;
6465 </ script >
6566</ head >
67+ <!-- Show a message about non-exist page (if the entered URL doesn't contain the 'wiki' word) -->
6668< body >
6769 < div class ="container ">
68- < h1 > 404 - Page doesn't exist!</ h1 >
70+ < h1 > 404 - The entered page doesn't exist!</ h1 >
6971 < div class ="footer ">
7072 < p > Go to the < a href ="/SaveDesktop "> Website Homepage</ a > .</ p >
7173 </ div >
You can’t perform that action at this time.
0 commit comments