Skip to content

Document that all internal URLs must be relative #1172

Closed

Description

@zxcware

In a site, referring an image with an absolute url, for example, /img/the-image.png, doesn't work. The site interprets it into http://gobblin.readthedocs.io/img/the-img.png but expects http://gobblin.readthedocs.io/en/latest/img/the-img.png. Why is there the part /en/latest injected into the url? I searched through the documentation but didn't find any related configuration.

Semantically, that absolute url should work. The root of the site should be http://gobblin.readthedocs.io/en/latest/ instead of http://gobblin.readthedocs.io/ in this case.

Any thought?

Activity

  1. added this to the 1.0.0 milestone on Mar 17, 2017
  2. waylan commented on Mar 17, 2017

    @waylan
    Contributor

    All internal URLs must be relative not absolute. Issue #192 addresses whether we should allow absolute URLs. This could be a duplicate of that; however, I checked the documentation and noticed that while all of the examples use relative URLs, we don't explicitly state that they must be relative. Therefore, I will leave this open to remind us to clarify the documentation regardless of what decision is made in #192.

  3. changed the title [-]image assets absolute url doesn't work[/-] [+]Document that all internal URLs must be relative[/+] on Mar 17, 2017
  4. added a commit that references this issue on Jan 18, 2025
    4b8687e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions