Skip to content

Links that are relative to root are treated as broken #5

Open

Description

@johlju

Tried MarkdownLinkCheck, and it finds broken links in my tests, but there are one issue, do you know if it can be solved (easily)? The issue is that it seems to think a correct link that points to a folder is broken. For example it fails on all the links in the README.md here.

https://github.com/PowerShell/SqlServerDsc/tree/dev/Examples

Path       : C:\Source\SqlServerDsc\Examples\README.md
Text       : SqlAG
Url        : /Examples/Resources/SqlAG
IsBroken   : True
IsAbsolute : False
Line       : 10
Column     : 3

Activity

  1. vors commented on Aug 10, 2018

    @vors
    Owner

    I see. You are using the /foo/bar to indicate that link is relative to the root of the repo.
    Could I ask is there any reason you prefer to use /Examples/Resources/SqlAG instead of Resources/SqlAG ?

  2. johlju commented on Aug 10, 2018

    @johlju
    Author

    Ah, thank you! There was no reason other than it worked, since the link worked I did not think of that it wasn't a relative path. and that a relative path would work better. 🙂 Changed the links, and they still work, and the test are passing!
    Thanks for helping with this, appreciate it a lot! 😃 🙇

  3. changed the title [-]Lists links to folders as broken[/-] [+]Links that are relative to root are treated as broken[/+] on Aug 11, 2018
  4. vors commented on Aug 11, 2018

    @vors
    Owner

    Great! Let's keep it open, since it's a valid syntax, but just not a very common one.

  5. reopened this on Aug 11, 2018
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