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

Redirect to portal if HTML is requested #69

Closed
carueda opened this Issue Jan 19, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@carueda
Copy link
Member

carueda commented Jan 19, 2019

See ESIPFed/sweet#70 (comment)

More concretely: when the format=html query parameter is included or the Accept header contains text/html(typically the case from browsers) in the ontology or term request, then it will be immediately dispatched with redirection to the portal.

@lewismc FYI

@carueda carueda self-assigned this Jan 19, 2019

@carueda carueda closed this in 3e6c9dc Jan 19, 2019

@carueda

This comment has been minimized.

Copy link
Member Author

carueda commented Jan 19, 2019

COR instance updated with the new 3.8.2 release.

You can now trying clicking in your browser:

Or, explicitly indicating format=html or Accept: text/html in your preferred command line program, eg:

http -h get 'http://sweetontology.net/stateTimeGeologic?format=html'
HTTP/1.1 302
...
Location: http://cor.esipfed.org/ont?iri=http://sweetontology.net/stateTimeGeologic
$ http -h get http://sweetontology.net/stateTimeGeologic "Accept: text/html"
HTTP/1.1 302
...
Location: http://cor.esipfed.org/ont?iri=http://sweetontology.net/stateTimeGeologic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment