Merge pull request #525 from kiwix/html-only-root-link

Insert root link only if html content
This commit is contained in:
Kelson 2021-05-14 16:51:33 +02:00 committed by GitHub
commit 5188355878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -260,9 +260,9 @@ Response::create_mhd_response(const RequestContext& request)
MHD_Response*
ContentResponse::create_mhd_response(const RequestContext& request)
{
inject_root_link();
if (contentDecorationAllowed()) {
inject_root_link();
if (m_withTaskbar) {
introduce_taskbar();
}