inspirehep / inspire-next

The INSPIRE repo.
https://inspirehep.net
GNU General Public License v3.0
59 stars 69 forks source link

editor: support legacy URLs #1860

Open jmartinm opened 7 years ago

jmartinm commented 7 years ago

For compatibility with inspirehep.net URL format, all record detailed views should support appending /edit at the end, which will open the record in the JSON editor.

Same should happen in the Holding Pen, so /holdingpen/1/edit should open the editor with the Holding Pen object.

A redirect can be implemented for the cases above to the right URL that Angular 2 editor understands.

jacquerie commented 7 years ago

You can pattern the tests on https://github.com/inspirehep/inspire-next/blob/ca164cc99b223a311d1a3f2d97082ff5b60c7379/tests/integration/test_theme_views.py#L77-L95.

StellaCh commented 6 years ago

Is this still relevant @jmartinm ?

jmartinm commented 6 years ago

Can be nice to have since some people might be used to appending to a URL /edit and getting the editor (as in legacy), for example https://inspirehep.net/record/1629953/edit/ while the equivalent on Labs is https://labs.inspirehep.net/editor/literature/1629953