API page: https://api.drupal.org/api/drupal/core%21modules%21system%21templates%21...

says that links variable needs to be:

title: The link text.
href: The link URL. If omitted, the 'title' is shown as a plain text item in the links list. If 'href' is supplied, the entire link is passed to l() as its $options parameter.
attributes: (optional) HTML attributes for the anchor, or for the tag if no 'href' is supplied.

but the href element is wrong. In template_preprocess_links url is used.

Comments

lussoluca created an issue. See original summary.

idebr’s picture

Issue tags: +Novice
hardikpandya’s picture

Assigned: Unassigned » hardikpandya
hardikpandya’s picture

Assigned: hardikpandya » Unassigned
Status: Active » Needs review
StatusFileSize
new1 KB

Patch attached.

lussoluca’s picture

Status: Needs review » Reviewed & tested by the community

+1 for me

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 4: use_url_not_href-2818375-4.patch, failed testing.

criz’s picture

Status: Needs work » Reviewed & tested by the community

Rescheduled test worked. Patch looks good.

  • catch committed 380e652 on 8.3.x
    Issue #2818375 by hardik.p, lussoluca: links.html.twig uses url not href
    

  • catch committed 54d9de6 on 8.2.x
    Issue #2818375 by hardik.p, lussoluca: links.html.twig uses url not href...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.3.x and cherry-picked to 8.2.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.