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

"home" link relation #41

Closed
dret opened this issue Nov 27, 2013 · 20 comments
Closed

"home" link relation #41

dret opened this issue Nov 27, 2013 · 20 comments

Comments

@dret
Copy link
Contributor

dret commented Nov 27, 2013

would it make sense to add a "home" link relation to the home document draft? if not, should the draft maybe suggest the use of an existing one to use when linking to a home document? "start" maybe isn't terrible when just looking at the name, but then again it seems to be more "first" than "home" when looking at the definition: "Refers to the first document in a collection of documents. This link type tells search engines which document is considered by the author to be the starting point of the collection." https://www.w3.org/TR/1999/REC-html401-19991224/types.html#type-links

@dret
Copy link
Contributor Author

dret commented Aug 6, 2014

any thoughts on this? seems like having a standardized way to link to "home documents" (whatever media type they may use) could be a useful thing to add. if you agree, i can add a section.

@mnot mnot added the json-home label Nov 24, 2014
@dret
Copy link
Contributor Author

dret commented Jun 15, 2015

if "home" is added, it might be interesting to see how it compares to the relation types proposed by https://tools.ietf.org/html/draft-wilde-service-link-rel

@ethanresnick
Copy link

The contents relation originally from html might also be able to do this. I'm curious what others think about that though!

@dret
Copy link
Contributor Author

dret commented Jun 16, 2015

https://www.w3.org/TR/1999/REC-html401-19991224/types.html#type-links says that contents 'Refers to a document serving as a table of contents. Some user agents also support the synonym ToC (from "Table of Contents").'
to me, that's a bit different from "home" itself (for example, at a "home" resource you might even find a link to a "contents" resource), but i am curious to hear more opinions as well!

@dret
Copy link
Contributor Author

dret commented Feb 22, 2016

thinking about the relation of the proposed home to https://tools.ietf.org/html/draft-wilde-service-link-rel a bit more, it seems to me it's fairly simple: home links to the actual home resource of the service from where the assumption is application flows start initially; the relations proposed by https://tools.ietf.org/html/draft-wilde-service-link-rel link to where these flows are documented, either in human- or in machine-readable ways. typically, the resource provided at home might have those links to service documentation and description.

@dret
Copy link
Contributor Author

dret commented Jun 15, 2016

@mnot, any thoughts on this one? if you're ok, i'd be happy to contribute a PR, containing a bit of explanatory text, and the appropriate IANA registration template.

@asbjornu
Copy link

I agree that a home relation would be useful. It conveys something different from contents, up and start. It would be useful if the text for the registration of the home relation explained this difference explicitly, I think.

@dret
Copy link
Contributor Author

dret commented Jun 16, 2016

On 2016-06-16 04:18, Asbjørn Ulsberg wrote:

I agree that a |home| relation would be useful. It conveys something
different from |contents|, |up| and |start|. It would be useful if the
text for the registration of the |home| relation explained this
difference explicitly, I think.

link relations are fuzzy by nature so it will be hard to differentiate
these things in a definitive way. but i would certainly try and as
usual, feedback will be very much appreciated.

@dret
Copy link
Contributor Author

dret commented Jun 21, 2016

for now, dret/I-D@3002e1f (the "XML syntax for home documents" draft) is where i have added the "home" link relation type. at least it's somewhere, and i'd be fine to migrate it to the core spec when/if the time seems right.

@dret
Copy link
Contributor Author

dret commented Jun 27, 2016

@mnot
Copy link
Owner

mnot commented Nov 23, 2016

So, what are the actual use cases here? Do you envision it occurring in representations sent to API clients (non-browser), or to browsers, or...?

@dret
Copy link
Contributor Author

dret commented Nov 24, 2016 via email

@mnot
Copy link
Owner

mnot commented Nov 27, 2016

I think that makes sense.

@dret
Copy link
Contributor Author

dret commented Nov 27, 2016 via email

@algermissen
Copy link

As a note to this thread: I am using a Well-Known URI for the purpose of finding the home document of a server (/.well-known/home). It has less capabilities compared to a link rel, but has served me well over the years.

@dret
Copy link
Contributor Author

dret commented Mar 1, 2017 via email

This was referenced Mar 1, 2017
@dret
Copy link
Contributor Author

dret commented Mar 1, 2017

PR: #214

@asbjornu
Copy link

asbjornu commented Mar 1, 2017

however, maybe it would be a good idea to register "home" as a well-known URI? i'll open a new issue for that.

@dret: That sounds like a good idea. Would you say it's okay for that well-known URI to do an HTTP 301 to i.e. / for applications where that make sense?

@dret
Copy link
Contributor Author

dret commented Mar 1, 2017 via email

@mnot
Copy link
Owner

mnot commented Mar 6, 2017

#214 merged; thanks!

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

No branches or pull requests

5 participants