Dropped root link injection

The only place that the root link is now used is in /skin/index.js,
so added it in static/templates/index.html. But it seems that nothing
prevents us from from switching from aboslute paths to relative paths
in /skin/index.js, which will eliminate the need for the root link
altogether.

As a result of this change content is never decorated by kiwix serve.
This commit is contained in:
Veloman Yunkan
2022-06-29 11:53:43 +04:00
parent 685e7f8ad4
commit a674561110
5 changed files with 5 additions and 15 deletions

View File

@ -112,7 +112,7 @@ std::string makeSearchResultsHtml(const std::string& pattern,
</style>
<title>Search: %PATTERN%</title>
<link type="root" href="/ROOT"></head>
</head>
<body bgcolor="white">
<div class="header">
%HEADER%