Follow-up to #1912608: Update pagination markup for new CSS standards and improved accessibility.
Problem/Motivation
#1912608: Update pagination markup for new CSS standards and improved accessibility pulls out the title and href from links, bypassing a lot of code like hook_link_alter, render array titles, hreflang handling, and all active link code.
We now have the link generator available in Twig thanks to #1777332: Replace theme_menu_link() and menu-tree.html.twig with a single Twig template so let's try and use it.
Proposed resolution
Use the link generator. We may be blocked on #2342745: Allow Twig link function to pass in HTML attributes.
Remaining tasks
Patch
User interface changes
n/a
API changes
n/a
Comments
Comment #1
chr.fritschIt's not possible to replace the current pager a tags with the new link function, because the current a tags all have span's inside.
Comment #2
joelpittetPostponing on #2342745: Allow Twig link function to pass in HTML attributes
Comment #3
mgiffordOk, that's fixed.
Comment #4
frantisekivanko CreditAttribution: frantisekivanko commentedWrong status.
Comment #5
star-szrThis should not have been closed, re-opening.