Skip to content
Snippets Groups Projects
Closed images dont appear in staging or pages because path is absolute
  • View options
  • images dont appear in staging or pages because path is absolute

  • View options
  • Closed Issue created by emmapeel

    The images at https://community.torproject.org/ and it's subsection pages (as https://community.torproject.org/training/ ) have absolute links, and that makes them break when the page is published in a folder and not its own fqdn.

    This is a problem in our previews, because the images are always broken, so you cannot really check when it is not going to be broken for real and it can lead to images broken in production. See for example at: https://review.torproject.net/tpo/web/community/l10n/ or https://review.torproject.net/tpo/web/community/l10n/training/

    The solution is to use the url filter when using images in templates, which makes the link relative and adapts to be in a subfolder even with the different locales.

    If instead you are writing markdown, the solution is to use the markdown filter for images:

    ![here you put the alt attribute](/path/to/image)

    Edited by emmapeel

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading