This project is not covered by Drupal’s security advisory policy.

Linkit doesn't provide a matcher for links to non-entity content, e.g. Views or custom controller pages.

This module provides a config entity for consisting of a label and a route and an accompanying Linkit matcher.

This allows site builders to create custom links that Linkit can match. Entity substitution then resolves the route defined in the config entity to a URI on render. Updating the route configuration will also update all rendered links in content.

The available links are stored as config.

REQUIREMENTS

https://www.drupal.org/project/linkit

INSTALLATION

Install as you would normally install a contributed Drupal module. Visit
https://www.drupal.org/node/1897420 for further information.

CONFIGURATION

Create a custom link und Configuration > Content authoring > Linkit custom links

* Add a label. This is used to match the link.
* Add a Drupal route, or alternatively a URL.
* Add optional route parameters (e.g. for contextual filters) in JSON format, e.g. ["arg_0": 1]
* Add an optional querystring or URI fragment (#)

Edit your Linkit profile, adding a "Linkit custom link" matcher. Linkit will now match the custom link label, and resolve the URI.

See Url::fromRoute.

Supporting organizations: 
Development

Project information

Releases