0

I am trying to add a custom link in the Pager Section in a View that I am buidling in Drupal 8. The link should be dynamic and should be based on the current URL.

Views allow you to add a static URL like /ab/cd/endoftheurl to the Custom link. However the url of the site is xyz.com/EN/anot/ther/url and xyz.com/FR/anot/ther/url. I want to append the first compoment to the url as a placehold so that it becomes /ab/cd/endoftheurl

Is this achievable from configuration? I know using contextual links would allow you to access the URL parameter in the form of {{ arguments.field_organization_target_id }} However I want this done without contextual filter. Is this possible?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.