mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 02:07:34 +00:00
Before this fix the /random endpoint could return a 404 Not Found page saying The requested URL "/random" was not found on this server. Error cases producing such a result were: - `/random?content=NON-EXISTING-BOOK` (can happen when a server is restarted or the library is reloaded and the current book is no longer available). - Failure of the libkiwix routine for picking a random article. Now a proper message is shown for each of those cases.
21 lines
380 B
HTML
21 lines
380 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta content="text/html;charset=UTF-8" http-equiv="content-type" />
|
|
<title>Content not found</title>
|
|
</head>
|
|
<body>
|
|
<h1>Not Found</h1>
|
|
{{#url}}
|
|
<p>
|
|
The requested URL "{{url}}" was not found on this server.
|
|
</p>
|
|
{{/url}}
|
|
{{#details}}
|
|
<p>
|
|
{{{details}}}
|
|
</p>
|
|
{{/details}}
|
|
</body>
|
|
</html>
|