Skip to content

Conversation

@eggpi
Copy link
Contributor

@eggpi eggpi commented Jan 12, 2023

{{ query_string }} is an HTML-escaped string (e.g. & instead of &). This means that, in an URL like:

/graph/?project=&startdate=2021-01-14&search_type=or&enddate=&user=&query=1Lib1Ref%2C+1lib1refCEE%2C+1bib1ref

{{ query_string }} is:

project=&startdate=2021-01-14&search_type=or&enddate=&user=&query=1Lib1Ref%2C+1lib1refCEE%2C+1bib1ref

Note how every parameter after the first ("project") is preceded by &amp. When this is used to construct an API query in the graphs page, this causes every parameter except for the first to be ignored, because it has a different name than what the server expects.

'{{ query_string }}' is an HTML-escaped string (e.g. '&' instead of
'&').  This means that, in an URL like:

/graph/?project=&startdate=2021-01-14&search_type=or&enddate=&user=&query=1Lib1Ref%2C+1lib1refCEE%2C+1bib1ref

'{{ query_string }}' is:

"project=&startdate=2021-01-14&search_type=or&enddate=&user=&query=1Lib1Ref%2C+1lib1refCEE%2C+1bib1ref"

Note how every parameter after the first ("project") is preceded by
'&amp'. When this is used to construct an API query in the graphs page,
this causes every parameter except for the first to be ignored.
@Samwalton9
Copy link
Member

Good catch! Got my local environment set up again and tested this with the date filter, and it seems to work as intended where it previously didn't!

@Samwalton9 Samwalton9 merged commit 39525f1 into WikipediaLibrary:master Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants