1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

Fixed calendar view dropping query parameters by using encodeURIComponent fixes #510 (#512)

This commit is contained in:
John Berlin 2019-10-26 04:25:14 -04:00 committed by Ilya Kreymer
parent 59b735ee99
commit 35004c1675

View File

@ -212,7 +212,12 @@ RenderCalendar.prototype.makeCDXQueryURL = function() {
if (this.queryInfo.rawSearch) {
queryURL = this.cdxURL + this.queryInfo.rawSearch + '&output=json';
} else {
queryURL = this.cdxURL + '?output=json&url=' + this.queryInfo.url;
queryURL =
this.cdxURL +
'?output=json&url=' +
// ensure that any query params in the search URL are not considered
// apart of the full query URL
encodeURIComponent(this.queryInfo.url);
}
var querySearchParams = this.queryInfo.searchParams;
if (querySearchParams.present && querySearchParams.includeInURL) {