[Qgis-user] Version dependent URL for Pyqgis documentation
Patrick Dunford
enzedrailmaps at gmail.com
Thu Mar 27 01:42:04 PDT 2025
Good day.
The online documentation for PyQgis uses version dependent URLs that
change with every new release of the documentation. This causes a lot of
issues with broken links.
(sample older version URL:
https://qgis.org/pyqgis/3.34/core/QgsLayerTreeNode.html)
(sample current version URL:
https://docs.qgis.org/3.40/en/docs/pyqgis_developer_cookbook/loadlayer.html)
Search engines have older links that do not work, for older version
numbers, and so do older versions of the Qgis application (using the
context menu in the Python console to search PyQgis documentation
invokes a version dependent URL related to the version of Qgis software
being used)
As it is clear no older versions of the documentation are retained, the
purpose of having a version number in a URL appears to be self defeating.
There are many possible ways of resolving this situation, but since i do
not intuitively know what the current version number used is, manually
correcting broken links is not one of the more useful options. It is
further noted that as Stable and LTR are different version numbers,
those choosing to use LTR must by definition endure these broken link
issues.
More information about the QGIS-User
mailing list