Commit c3fd357a authored by Ryan Herbert's avatar Ryan Herbert Committed by Mikael Salson

url.js fix legacy url params

Adds alias 'patient' to 'patient_id' and 'run' to 'run_id'.
The renaming of url paramters broke URLs that contained the legacy
parameters 'patient' and 'run'. Adding an alias allows us to maintain
the new parameters while allowing older URLs to function.

See #3062
parent d9cf2a7d
......@@ -194,7 +194,10 @@ Url.prototype= {
function UrlEncoder() {
this.encoding = {
'sample_set_id': 'set'
'sample_set_id': 'set',
'patient_id': 'patient',
'run_id': 'run'
};
this.decoding = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment