ashb commented on a change in pull request #5503: [AIRFLOW-3360] Make the DAGs
search respect other querystring parameters
URL: https://github.com/apache/airflow/pull/5503#discussion_r298827765
##########
File path: airflow/www/templates/airflow/dags.html
##########
@@ -218,8 +218,9 @@ <h2>DAGs</h2>
$('#dag_query').on('keypress', function (e) {
// check for key press on ENTER (key code 13) to trigger the search
if (e.which === ENTER_KEY_CODE) {
- search_query = $('#dag_query').val();
- window.location = DAGS_INDEX + "?search="+ encodeURI(search_query);
+ var query = new URLSearchParams(window.location.search);
Review comment:
IE doesn't support this, so I think since it's easy to not use this we
shouldn't.
(That or we add this in a polyfila)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services