<div dir="ltr">Actually, name() does not contain spacing and I think displayName is translated. So should not work as is<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-09 13:01 GMT+01:00 DelazJ <span dir="ltr"><<a href="mailto:delazj@gmail.com" target="_blank">delazj@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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/<wbr>algnameconcatenatedbyhyphen" --> same thing as generated by docs!<br></div>In other words, in<br><br> <span class="m_-5031710742537271739gmail-blob-code-inner">algHelp = <span class="m_-5031710742537271739gmail-pl-c1">QgsHelp::helpUrl</span>( <span class="m_-5031710742537271739gmail-pl-c1">QStringLiteral</span>( <span class="m_-5031710742537271739gmail-pl-s"><span class="m_-5031710742537271739gmail-pl-pds">"</span>processing_algs/%1/%2.html#%3<span class="m_-5031710742537271739gmail-pl-pds"><wbr>"</span></span> ).<span class="m_-5031710742537271739gmail-pl-c1">arg</span>( <span class="m_-5031710742537271739gmail-pl-smi">mAlgorithm</span>-><span class="m_-5031710742537271739gmail-pl-c1">provider</span>()-><span class="m_-5031710742537271739gmail-pl-c1 m_-5031710742537271739gmail-x m_-5031710742537271739gmail-x-first m_-5031710742537271739gmail-x-last">helpId</span><wbr>(), <span class="m_-5031710742537271739gmail-pl-smi">mAlgorithm</span>-><span class="m_-5031710742537271739gmail-pl-c1">groupId</span>(), <span class="m_-5031710742537271739gmail-pl-smi">mAlgorithm</span>-><span class="m_-5031710742537271739gmail-pl-c1">name</span>() ) );<br><br></span></div><span class="m_-5031710742537271739gmail-blob-code-inner">replace the <span class="m_-5031710742537271739gmail-blob-code-inner"><span class="m_-5031710742537271739gmail-pl-smi">mAlgorithm</span>-><span class="m_-5031710742537271739gmail-pl-c1">name</span>()</span> by something that replaces each space between the words in name() by  a hyphen</span><span class="m_-5031710742537271739gmail-blob-code-inner">? </span><br></div><div><span class="m_-5031710742537271739gmail-blob-code-inner"></span></div><span class="m_-5031710742537271739gmail-blob-code-inner"><br> <span class="m_-5031710742537271739gmail-blob-code-inner">algHelp = <span class="m_-5031710742537271739gmail-pl-c1">QgsHelp::helpUrl</span>( <span class="m_-5031710742537271739gmail-pl-c1">QStringLiteral</span>( <span class="m_-5031710742537271739gmail-pl-s"><span class="m_-5031710742537271739gmail-pl-pds">"</span>processing_algs/%1/%2.html#%3<span class="m_-5031710742537271739gmail-pl-pds"><wbr>"</span></span> ).<span class="m_-5031710742537271739gmail-pl-c1">arg</span>( <span class="m_-5031710742537271739gmail-pl-smi">mAlgorithm</span>-><span class="m_-5031710742537271739gmail-pl-c1">provider</span>()-><span class="m_-5031710742537271739gmail-pl-c1 m_-5031710742537271739gmail-x m_-5031710742537271739gmail-x-first m_-5031710742537271739gmail-x-last">helpId</span><wbr>(), <span class="m_-5031710742537271739gmail-pl-smi">mAlgorithm</span>-><span class="m_-5031710742537271739gmail-pl-c1">groupId</span>(), <span class="m_-5031710742537271739gmail-pl-smi">mAlgorithm</span>-><span class="m_-5031710742537271739gmail-pl-c1">name</span>().replace (' ', '-') ) );</span><br></span></div><div><span class="m_-5031710742537271739gmail-blob-code-inner"><br>Does that sound correct?<br><br></span></div><span class="m_-5031710742537271739gmail-blob-code-inner">my 2cts,<br></span></div><span class="m_-5031710742537271739gmail-blob-code-inner">Harrissou<br></span><div><div><div><div><div><br></div></div></div></div></div></div><div class="HOEnZb"><div class="h5"><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>> 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/QGI<wbr>S/QGIS-Documentation/QGIS-Docu<wbr>mentation/output/html/en/docs/<wbr>user_manual/processing_algs/<wbr>qgis/rasterterrainanalysis.<wbr>html<br>
<br>
but not for anchors that are still taken from the header<br>
<br>
file:///home/matteo/lavori/QGI<wbr>S/QGIS-Documentation/QGIS-Docu<wbr>mentation/output/html/en/docs/<wbr>user_manual/processing_algs/<wbr>qgis/rasterterrainanalysis.<wbr>html#hypsometric-curves<br>
<br>
even if the anchor name is different:<br>
<br>
.. _bla_bla_bla:<br>
<br>
Hypsometric curves<br>
------------------<br>
<div class="m_-5031710742537271739HOEnZb"><div class="m_-5031710742537271739h5">______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">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/mailma<wbr>n/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>