hbz / digitalisiertedrucke

Implements http://digitalisiertedrucke.de/
0 stars 0 forks source link

Restore old URLs #45

Closed fsteeg closed 7 years ago

fsteeg commented 7 years ago

Change routes to match the old URLs like http://digitalisiertedrucke.de/record/46713

Depends on #32

fsteeg commented 7 years ago
fsteeg commented 7 years ago

We will keep the new pattern and IDs for collections, and restore the old ones for titles:

Regarding the identifiers, we should keep using the literal ones for collections and look into using the /record/$ID pattern for single resources. Thus, we would regain old URLs for the biggest part of resources. -- @acka47 in https://github.com/hbz/digitalisiertedrucke/issues/32#issuecomment-256020938

fsteeg commented 7 years ago

For consistency with the collections URLs and the D and P IDs in digital and print titles, I've implemented this as a simple 301 moved permanently redirect, see URLs linked from https://github.com/hbz/digitalisiertedrucke/wiki/Example-resources:

http://test.digitalisiertedrucke.de/record/490805 http://test.digitalisiertedrucke.de/record/491265

acka47 commented 7 years ago

http://www.digitalisiertedrucke.de/record/490805?ln=de currently doesn't redirect to http://digitalisiertedrucke.de/resources/490805. Shouldn't it already?

fsteeg commented 7 years ago

No, because the redirect functionality is not deployed to the production instance yet.

acka47 commented 7 years ago

+1