microsimulation / ijm

A central place for general issues, documents, scripts and resources for the IJM
https://microsimulation.org/ijm/
MIT License
4 stars 0 forks source link

Redirection for the 2020 Winter issue not available #108

Closed BlueReZZ closed 3 years ago

BlueReZZ commented 3 years ago

Describe the bug Since the infrastrcture redirections made via https://github.com/microsimulation/ijm/blob/master/nginx_configuration/rewrite.conf were written in the Summer of 2020 the Winter issue wasn't covered and needs adding

Steps To Reproduce https://microsimulation.pub/V13_1/ijm.00210.pdf should redirect to https://microsimulation.pub/articles/00210, and all other articles in volume 13 issue 1 should redirect in a similar way to their respective article pages.

BlueReZZ commented 3 years ago

I suspect that we need a new line for V13_1 similar to:

location ~* "^/IJM/V12_3/.*(\d{5})\.pdf$" {
            return 301 http://microsimulation.pub/articles/$1;
        }

Further issues will only be published on the new site so this would be the last redirection needed

BlueReZZ commented 3 years ago

@erkannt can we have a look at this later?

erkannt commented 3 years ago

Might be able to generalise the rewrite:

location ~* "^/IJM/V\d+_\d/.*(\d{5})\.pdf$" {
            return 301 http://microsimulation.pub/articles/$1;
        }
erkannt commented 3 years ago

Redirect from microsimulation.org is incorrectly setup for the rewrites on the microsimulation.pub side of things.

The rewrites here expect the path to begin with /IJM/ but .org strips it.

Same goes for all the urls in the url.map

erkannt commented 3 years ago

rewrite rule for volume 1-1 was missing zero padding. fixed with 04f53cd

erkannt commented 3 years ago

./tests/redirects.sh passes, so I'm closing this issue but raising a new one for a bunch of other DOIs that are lacking redirects.