Hello,
I have a block view with exposed filters and clicking on the search button shows 10 results and at the bottom there is a "See more" button that theoretically passes the parameters to another view. But when clicking on "See more" the URL sends the parameters selected in the search but adds "? Destination = ..."
Is there any way that does not show the word destination and the name of the current view, but does it pick up the parameters of the search?

In your module I have selected "include destination" to collect the parameters, but it appears in the URL "URL? Destination = ...

Is there any solution to this case?
Version: 8.x-1.0-beta1
Drupal version 8.6.3

Thank you very much and great module

Comments

ReViJa created an issue. See original summary.

agentrickard’s picture

The "include destination" option is designed to append the ?destination=\path parameter to the generated links. That is used as by Drupal as a form redirect (in cases where the link takes you to a form page).

In your case, you should disable that option. It shouldn't have anything to do with collecting parameters.

revija’s picture

Hello, if I uncheck "include destination" it does not send me any parameter of the search. Only when I set that option sends the parameters.
Any ideas?

Thank you.

agentrickard’s picture

Not without digging deep into the code, which I can't do right now.

agentrickard’s picture

So I took a look, and the issue is that "passing the parameters to another view" isn't really what this module is designed for. The destination parameter has a very specific use.

You _should_ be able to achieve what you want using the Replacement Patterns feature and the Rewrite Output option (found under the Advanced Options tab).

The question will be a) whether the parameters you want are static or dynamic; b) if dynamic, are they available to you through the replacement patterns.

For instance, if your View uses Contextual FIlters, those parameters will be available to you as {{ arguments.NAME }} replacement patterns, so you would rewrite the output to be something like:

/my-link/?my_arg={{ arguments.NAME}}

or

/my-link/?referrer=[view:url]

Be careful (security-wise) when passing arguments via the URL in that way.

revija’s picture

Thank you very much for the help !! It was very useful.

Very thankful.
Regards

agentrickard’s picture

Category: Task » Support request
Status: Active » Closed (works as designed)