Skip to content

Replace ~/docs links with ../ relative links #9968

Closed

Description

@nxtn

There are a number of links starting with ~/ in the dotnet/docs repo that point to files in the repo itself. These can be replaced with relative links starting with ../.

As described in styleguide/template.md#internal-links

In most cases, we use the relative links and discourage the use of ~/ in links because relative links resolve in the source on GitHub.

Related to #8364

Activity

  1. added
    help wanted
    and removed
    ⌚ Not Triaged
    on Jan 14, 2019
  2. mairaw commented on Jan 14, 2019

    @mairaw
    Contributor

    Thanks @NextTurn for filing this issue. I've added this issue to our backlog and our community project.

    We prefer the relative links because they work on GH preview too but the ~ works fine for the content.

  3. nemrism commented on Aug 19, 2019

    @nemrism
    Contributor

    I think I've covered all the ~/docs/ links with those PRs.

    Do you think it should be useful to replace other kind of ~/ links?
    cc @mairaw / @NextTurn

  4. nxtn commented on Aug 20, 2019

    @nxtn
    ContributorAuthor

    Thanks a lot for your contributions @nemrism.

    This issue could be better described as "Replace ~/docs links". It is fine to close it when your PRs are merged.

  5. changed the title [-]Replace `~/` links with `../` relative links[/-] [+]Replace `~/docs` links with `../` relative links[/+] on Aug 20, 2019
  6. mairaw commented on Aug 20, 2019

    @mairaw
    Contributor

    I changed the title then to cover that. Let's close this issue once all PRs are merged. Thank you so much @nemrism!

  7. nemrism commented on Aug 22, 2019

    @nemrism
    Contributor

    There are still some ~/docs links into includes root folder.
    As it is supposed to be included files, I don't know if they need to be changed.

    cc @rpetrusha @mairaw @NextTurn

  8. nxtn commented on Aug 23, 2019

    @nxtn
    ContributorAuthor

    @nemrism No, we don't need to replace those ~/ links in includes directory.

  9. mairaw commented on Aug 23, 2019

    @mairaw
    Contributor

    Correct. Inside the includes folder, it's fine to keep them because they can be used in any article, so we don't know the path.

  10. modified the milestones: Backlog, August 2019 on Aug 23, 2019
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

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions