summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9094105)
This was left around from some recent work to fixup the redirect.
const old_path = new RegExp(`/${engine}/${game_id}/?`);
const new_path = `/${engine}/${canon_id}/`;
const new_url = request.originalUrl.replace(old_path, new_path);
const old_path = new RegExp(`/${engine}/${game_id}/?`);
const new_path = `/${engine}/${canon_id}/`;
const new_url = request.originalUrl.replace(old_path, new_path);
- console.log("Redirecting from " + request.originalUrl + " to " + new_url);
response.redirect(301, new_url);
return;
}
response.redirect(301, new_url);
return;
}