Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated hyperlinks are not correct #24

Open
dhruvarora93 opened this issue Apr 15, 2024 · 1 comment
Open

Generated hyperlinks are not correct #24

dhruvarora93 opened this issue Apr 15, 2024 · 1 comment

Comments

@dhruvarora93
Copy link

dhruvarora93 commented Apr 15, 2024

I am using the chi middleware and importing it like this:

"github.com/go-chi/chi/v5/middleware"

The hyperlinks for the middleware methods that are being used is not correct. For instance, for the Logger methods the link generated is:

https://github.com/go-chi/chi/blob/master/@v5.0.11/middleware/logger.go#L39

That link does not work and gives a 404. I am also passing a URL map to the method like this but it does not help (maybe I am doing it wrong?)

URLMap: map[string]string{
			"github.com/go-chi/chi/v5": "https://github.com/go-chi/chi/blob/master/",
		},

Any help is appreciated.

@dhruvarora93
Copy link
Author

dhruvarora93 commented Apr 15, 2024

Looks like if I do this, it works correctly but doesn't seem like an extensible solution.

	URLMap: map[string]string{
			"github.com/go-chi/chi/[email protected]": "https://github.com/go-chi/chi/blob/master/",
		},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant