Shorter/prettier permalinks

ground wrote 10 years ago: 1

Hi,

It seems that currently some string has to be added after a show/episode ID in order to make the link work, e.g. http://www.tvmaze.com/episodes/1/- that redirects to http://www.tvmaze.com/episodes/1/under-the-dome-1x01-pilot

It would be nice if that part could be skipped and links like http://www.tvmaze.com/episodes/1 worked as well.


MichaelDeBoey wrote 10 years ago: 1

That would indead be a good idea :-)
But other things are more important right now I think :-)


david wrote 10 years ago: 1

Linking to an URL like "http://www.tvmaze.com/episodes/1/-" is quite a hack and shouldn't be relied on.

Any reason you couldn't link to the proper URL? If you're using our API, it contains the proper web URL's for each show and episode.


MichaelDeBoey wrote 10 years ago: 1

david wrote:
Linking to an URL like "http://www.tvmaze.com/episodes/1/-" is quite a hack and shouldn't be relied on.
Any reason you couldn't link to the proper URL? If you're using our API, it contains the proper web URL's for each show and episode.

I think the main reason is for sharing the link :-)


david wrote 10 years ago: 1

MichaelDeBoey wrote:
I think the main reason is for sharing the link :-)

Why couldn't one share the original link that's given by our website or API?


MichaelDeBoey wrote 10 years ago: 1

david wrote:
Why couldn't one share the original link that's given by our website or API?

For example to share it on Twitter that would take more characters than "needed

ground wrote 10 years ago: 1

Exactly :) Of course I could use bit.ly or another URL shortener but I don't think it's really needed as all tvmaze links are already rather short.


david wrote 10 years ago: 1

All right, I tweaked the routing and made this possible.

But please don't use this unless it's absolutely necessary. Linking to an "incorrect" URL (with a missing slug, or a bad slug like "-") causes a HTTP redirect when you click on it, which means a longer page-load time for the people clicking your link.

http://tvmaze.com/shows/1

http://tvmaze.com/episodes/1

Try 30 days of free premium.