mirror of https://github.com/kiwix/libkiwix.git
The next goal is to redirect old-style /book/path/to/entry URLs to /content/book/path/to/entry, which seemed pretty trivial. However, given the current handling of some endpoint URLs, more work was required to ensure that invalid endpoint URLs (e.g. "/random/number" or "/suggest/fr") are not interpreted as content URLs. Previously, that was not a user-observable issue, since the result would be an immediate 404 error (except in certain edge cases, like handling the request for "/random/number" when there is a book with name "random" containing an article at path "/number"). With redirection of URLs that were assumed to refer to content a 404 error would be issued for the transformed URL ("/content/random/number") which may be confusing. Therefore this change is to ensure the correct routing of endpoint URL handling. |
||
---|---|---|
.. | ||
data | ||
book.cpp | ||
counterParsing.cpp | ||
httplib.h | ||
kiwixserve.cpp | ||
library.cpp | ||
library_server.cpp | ||
lrucache.cpp | ||
manager.cpp | ||
meson.build | ||
name_mapper.cpp | ||
opds_catalog.cpp | ||
pathTools.cpp | ||
regex.cpp | ||
server.cpp | ||
server_helper.cpp | ||
server_search.cpp | ||
server_testing_tools.h | ||
stringTools.cpp | ||
tagParsing.cpp |