isaacs / github

Just a place to track issues and feature requests that I have for github
2.21k stars 129 forks source link

Git.io shortener url for github pages #165

Open prat0318 opened 10 years ago

prat0318 commented 10 years ago

The project github page urls tend to get long in length. It would be great if git.io allows github.io domains for shortening. Currently it allows only github.com/* urls which are not useful for the purpose.

punkeel commented 10 years ago

It also supports subdomains as well, so http://punkeel.github.com/test can be shorten (and GH redirects it to the new dot io) So this is not really a "problem", more a missing regexp :) But still, :+1:

prat0318 commented 10 years ago

i think .github. com are not supported now.. now pages are generated as .github.io, which is not allowed at git.io

punkeel commented 10 years ago

They are supported : http://maxogden.github.com/gh-pages-template They redirect to the new url, http://maxogden.github.io/gh-pages-template

And it is allowed on git.io ... Look at 2048 for exemple, http://git.io/2048 :-)

prat0318 commented 10 years ago

Oh didn't know that! i was also wondering how git.io/2048 was possible (i thought github specifically made an exception :smile: ) ... I figured it now, thanks @PunKeel :+1:

punkeel commented 10 years ago

You're welcome ;) PS: sent a mail to support@github to let them know :)

patcon commented 10 years ago

Maybe leave this open and retitle for a regex fix? Not sure if we should close it just because there's a workaround :)

thanks for sending that email @PunKeel!

punkeel commented 10 years ago

Hi, got a reply

Hi PunKeel,

your short url service is cool, but it looks like the github.io pages are forbidden … Even if it's your new domain name.

Thanks very much for the feedback! I think git.io shortening is meant specifically for URLs on the github.com domain, but we'll go ahead and mention this to the team for discussion.

Thanks again, Robert Wait&see :-)

patcon commented 10 years ago

Oh hey, and it's usually worth directing them to the isaacs/github issue, just so they see the full context. Usually they won't comment here, but I'm sure it gets read!

Plus, then it helps drive home how useful public issue queues are to us :)

punkeel commented 10 years ago

Done too :)

punkeel commented 9 years ago

Just to add the information here: https://twitter.com/mathias/status/122603466265862144

GitHub URL shortener: git.io

Add your own short URLs: curl http:​//git.io/ -i -F "url=https​://github.com/jquery/jquery" -F "code=jquery"

This is how 2048 got its custom URL.

Regards, :D