Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Redirect the standard vocabulary URIs #299

Merged
merged 1 commit into from
Oct 30, 2019

Conversation

handrews
Copy link
Contributor

We've already had one person confused that these URIs 404, even
though the spec says to expect that. Let's generate HTML stubs
to redirect to the appropriate spec section for each vocabulary
(or the whole spec for Hyper-Schema).

No media type restrictions are given at this time for vocabulary
documents, so having HTML here is fine. Jekyll (at least the
local version, production sometimes differs) will do the redirect
on URIs without the .html suffix, which is what we need. It will
also do it with .html, but I think that's fine.

We've already had one person confused that these URIs 404, even
though the spec says to expect that.  Let's generate HTML stubs
to redirect to the appropriate spec section for each vocabulary
(or the whole spec for Hyper-Schema).

No media type restrictions are given at this time for vocabulary
documents, so having HTML here is fine.  Jekyll (at least the
local version, production sometimes differs) will do the redirect
on URIs without the .html suffix, which is what we need.  It will
also do it with .html, but I think that's fine.
@netlify
Copy link

netlify bot commented Oct 30, 2019

Deploy preview for condescending-hopper-c3ed30 ready!

Built with commit 96b5569

https://deploy-preview-299--condescending-hopper-c3ed30.netlify.com

@notEthan
Copy link
Contributor

👍 make that [at least] two people, it took me longer than I'll actually admit to figure out these URLs.

@Relequestual
Copy link
Member

Follow up question. Should the URIs which are not supposed to be network accessable, be un-linked in the specification and in stead just be encased in quotes?

@awwright
Copy link
Member

It's best practice to put something at the target URI, even if it's not machine readable. e.g. https://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul

@handrews handrews merged commit 1cdc93b into json-schema-org:master Oct 30, 2019
@handrews handrews deleted the vocab-redirect branch December 30, 2019 21:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants