Skip to content

Use {% relref "…" %} in order to avoid canonifyURLs #1689

Open

Description

@de-es

Es scheinen noch nicht alle internen Links nach der Unterscheidung von v4/5 im User Manual zu funktionieren.

Beispiel auf der Seite https://docs.contao.org/5.x/manual/de/anleitungen/contao-demo/:

https://docs.contao.org/de/anleitungen/lokale-installation/ (404)

Liegt aktuell unter https://docs.contao.org/5.x/manual/de/anleitungen/lokale-installation/

Eine JS-Datei wird auch nicht gefunden:

https://docs.contao.org/5.x/manual/de/versionindex.de.js (404)

Liegt aktuell unter https://docs.contao.org/5.x/manual/versionindex.de.js

Activity

  1. fritzmg commented on Oct 27, 2025

    @fritzmg
    Contributor

    Eine JS-Datei wird auch nicht gefunden:

    https://docs.contao.org/5.x/manual/de/versionindex.de.js (404)

    Liegt aktuell unter https://docs.contao.org/5.x/manual/versionindex.de.js

    I have created a separate issue for that: #1690 as this is a more general issue when generating the docs.

    The other ones are content issues.

  2. fritzmg commented on Oct 27, 2025

    @fritzmg
    Contributor

    The reason this worked in the past was due to canonifyURLs: true - which is discouraged by Hugo now. We should change all links to use {% relref "…" %} instead. For now I have re-enabled canonifyURLs again - but I will keep this issue open.

  3. changed the title [-]Internal links 404[/-] [+]Use `{% relref "…" %}` in order to avoid `canonifyURLs`[/+] on Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions