<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>Maybe we can also fix this issue on the application side: in docs, we try to give the section title the same name as the alg ie the way it's shown to user (eg "hypsometric curves"). What Sphinx does is to concatenate it with hyphen when building the url. How about doing this concatenation in helpUrl function? this way, link from QGIS will already be "helpId/groupID/algnameconcatenatedbyhyphen" --> same thing as generated by docs!<br></div>In other words, in<br><br> <span class="gmail-blob-code-inner">algHelp = <span class="gmail-pl-c1">QgsHelp::helpUrl</span>( <span class="gmail-pl-c1">QStringLiteral</span>( <span class="gmail-pl-s"><span class="gmail-pl-pds">"</span>processing_algs/%1/%2.html#%3<span class="gmail-pl-pds">"</span></span> ).<span class="gmail-pl-c1">arg</span>( <span class="gmail-pl-smi">mAlgorithm</span>-><span class="gmail-pl-c1">provider</span>()-><span class="gmail-pl-c1 gmail-x gmail-x-first gmail-x-last">helpId</span>(), <span class="gmail-pl-smi">mAlgorithm</span>-><span class="gmail-pl-c1">groupId</span>(), <span class="gmail-pl-smi">mAlgorithm</span>-><span class="gmail-pl-c1">name</span>() ) );<br><br></span></div><span class="gmail-blob-code-inner">replace the <span class="gmail-blob-code-inner"><span class="gmail-pl-smi">mAlgorithm</span>-><span class="gmail-pl-c1">name</span>()</span> by something that replaces each space between the words in name() by  a hyphen</span><span class="gmail-blob-code-inner">? </span><br></div><div><span class="gmail-blob-code-inner"></span></div><span class="gmail-blob-code-inner"><br> <span class="gmail-blob-code-inner">algHelp = <span class="gmail-pl-c1">QgsHelp::helpUrl</span>( <span class="gmail-pl-c1">QStringLiteral</span>( <span class="gmail-pl-s"><span class="gmail-pl-pds">"</span>processing_algs/%1/%2.html#%3<span class="gmail-pl-pds">"</span></span> ).<span class="gmail-pl-c1">arg</span>( <span class="gmail-pl-smi">mAlgorithm</span>-><span class="gmail-pl-c1">provider</span>()-><span class="gmail-pl-c1 gmail-x gmail-x-first gmail-x-last">helpId</span>(), <span class="gmail-pl-smi">mAlgorithm</span>-><span class="gmail-pl-c1">groupId</span>(), <span class="gmail-pl-smi">mAlgorithm</span>-><span class="gmail-pl-c1">name</span>().replace (' ', '-') ) );</span><br></span></div><div><span class="gmail-blob-code-inner"><br>Does that sound correct?<br><br></span></div><span class="gmail-blob-code-inner">my 2cts,<br></span></div><span class="gmail-blob-code-inner">Harrissou<br></span><div><div><div><div><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-09 12:26 GMT+01:00 matteo <span dir="ltr"><<a href="mailto:matteo.ghetta@gmail.com" target="_blank">matteo.ghetta@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> but yes, it's not an anchor that is created.<br>
<br>
</span>changing the file name works fine. I have locally<br>
<br>
file:///home/matteo/lavori/<wbr>QGIS/QGIS-Documentation/QGIS-<wbr>Documentation/output/html/en/<wbr>docs/user_manual/processing_<wbr>algs/qgis/<wbr>rasterterrainanalysis.html<br>
<br>
but not for anchors that are still taken from the header<br>
<br>
file:///home/matteo/lavori/<wbr>QGIS/QGIS-Documentation/QGIS-<wbr>Documentation/output/html/en/<wbr>docs/user_manual/processing_<wbr>algs/qgis/<wbr>rasterterrainanalysis.html#<wbr>hypsometric-curves<br>
<br>
even if the anchor name is different:<br>
<br>
.. _bla_bla_bla:<br>
<br>
Hypsometric curves<br>
------------------<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></div></div></blockquote></div><br></div>