Hyprlinkr icon indicating copy to clipboard operation
Hyprlinkr copied to clipboard

Support for Relative Uris

Open joaopbnogueira opened this issue 8 years ago • 2 comments

First of all, thank you for your work.

Have you thought about the possibility of supporting relative Uri generation in addition to absolute ones?

If that is something that you would be OK with, I'm available to contribute.

Thanks

joaopbnogueira avatar Feb 18 '17 01:02 joaopbnogueira

I admit that I don't think much about Hyprlink these days, but I don't see why we couldn't add methods for relative URLs.

In ASP.NET Web API, they make the distinction between UrlHelper.Link and UrlHelper.Route, but I find those names meaningless. By that token, I think a new method for relative URLs should be called GetRelativeUri.

ploeh avatar Feb 18 '17 11:02 ploeh

Exactly my thoughts, I'll see how to include it while keeping changes to a minimum.

joaopbnogueira avatar Feb 20 '17 21:02 joaopbnogueira