Views has a field to create a dropdown menu and this has the option of having the destination added to those links. This works great. Unfortunately, if the View is used through an AJAX call the destination ends up looking like it should return to the AJAX call rather than the page which launched the ajax call. This core Drupal bug: https://www.drupal.org/project/drupal/issues/2866386 is reporting this issue in a slightly different use case than mine; and sadly, the bug is marked as CLOSED (even though technically it isn’t).
My use case is using a modal form which upon submission, changes values in a block on that page. That block has numerous links in it which are using a Views dropdown. Within the ajax call i rerun the View and update the block on my page with the result of the updated view. Due to the issue mentioned above, the links all have a corrupted destination set.
Wondering if there is any way to set the destination that Views wants to use before i run $view->execute()?
Was hoping for something like $view->setDestination(); but no luck (I suspect since people think Views knows what the proper dest is).