My editors need to be able to create aliased links to our various embedded search pages, with a views query parameter set and a fragment identifier to jump to the results.

The internal path is of the form /node/123?topic=32#results.

They can search for the node by title and append the query/fragment themselves, and the link works as expected, except the link path is not aliased. Can the linkit plugin and filter be improved to handle aliasing of paths that contain query parameters and/or fragment identifiers?

Comments

John Pitcairn created an issue. See original summary.

johnpitcairn’s picture

Note that using Redirect module's "enforce clean and canonical URLs" setting does not help in the case of links with fragments, because the fragment is not passed to the server redirect and will be lost following the redirect.

I propose that Linkit's output filter should first strip the query and fragment, then alias the path, then append the query and fragment.

johnpitcairn’s picture