mirror of https://github.com/kiwix/libkiwix.git
Merge pull request #525 from kiwix/html-only-root-link
Insert root link only if html content
This commit is contained in:
commit
5188355878
|
@ -260,9 +260,9 @@ Response::create_mhd_response(const RequestContext& request)
|
||||||
MHD_Response*
|
MHD_Response*
|
||||||
ContentResponse::create_mhd_response(const RequestContext& request)
|
ContentResponse::create_mhd_response(const RequestContext& request)
|
||||||
{
|
{
|
||||||
|
if (contentDecorationAllowed()) {
|
||||||
inject_root_link();
|
inject_root_link();
|
||||||
|
|
||||||
if (contentDecorationAllowed()) {
|
|
||||||
if (m_withTaskbar) {
|
if (m_withTaskbar) {
|
||||||
introduce_taskbar();
|
introduce_taskbar();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue