<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - help.l.o search result links to other page than where the search string was found"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138485">138485</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>help.l.o search result links to other page than where the search string was found
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Documentation
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>lionel@mamane.lu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>olivier.hallot@libreoffice.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
When doing a search on help.libreoffice.org, clicking on a link in the search
results brings one to a different help page than the one where the search
string was found.

It looks like it always send to the "writer" variant of the help page, even if
the writer variant is not a match for the search.

Steps to Reproduce:
1. open <a href="https://help.libreoffice.org/">https://help.libreoffice.org/</a> in a browser
2. in the top fulltext search box (not the index search box on the left), enter
"whole sheet export" WITH the quote characters.
3. click the magnifying glass icon
4. this brings one to
<a href="https://help.libreoffice.org/7.0/en-GB/search?P=%22whole+sheet+export%22&DEFAULTOP=and&xP=ZBwhole%09ZFwhole%09ZSwhole%09Zwhole%09ZBsheet%09ZFsheet%09ZSsheet%09Zsheet%09ZBexport%09ZFexport%09ZSexport%09Zexport&xFILTERS=.%7E%7E">https://help.libreoffice.org/7.0/en-GB/search?P=%22whole+sheet+export%22&DEFAULTOP=and&xP=ZBwhole%09ZFwhole%09ZSwhole%09Zwhole%09ZBsheet%09ZFsheet%09ZSsheet%09Zsheet%09ZBexport%09ZFexport%09ZSexport%09Zexport&xFILTERS=.%7E%7E</a>
5. there is one result. Click on it.
6. This brings one to
<a href="https://help.libreoffice.org/7.0/en-GB/text/shared/01/ref_pdf_export_general.html?&DbPAR=WRITER&System=UNIX">https://help.libreoffice.org/7.0/en-GB/text/shared/01/ref_pdf_export_general.html?&DbPAR=WRITER&System=UNIX</a>
7. With one's browser built-in "search in this page" feature, search for "whole
sheet export" (without the quotes)
8. Observe that the page does not contain this phrase and is thus not a match
for the search requested!

Actual Results:
One gets sent to the wrong page
<a href="https://help.libreoffice.org/7.0/en-GB/text/shared/01/ref_pdf_export_general.html?&DbPAR=WRITER&System=UNIX">https://help.libreoffice.org/7.0/en-GB/text/shared/01/ref_pdf_export_general.html?&DbPAR=WRITER&System=UNIX</a>

Expected Results:
One gets sent to the correct page
<a href="https://help.libreoffice.org/7.0/en-GB/text/shared/01/ref_pdf_export_general.html?&DbPAR=CALC&System=UNIX">https://help.libreoffice.org/7.0/en-GB/text/shared/01/ref_pdf_export_general.html?&DbPAR=CALC&System=UNIX</a>
which is presumably the match that was actually found by the website's search
engine.


Reproducible: Always


User Profile Reset: No



Additional Info:
The difference between the two URLs is replacing &DbPAR=WRITER by &DbPAR=CALC</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>