Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 301158

Views "Link to URI" formatter fails on trim

$
0
0

Problem/Motivation

The URL formater Link to URI seems to fail with views TRIM feature.

If you add an URL to a view it can be quite long and may move outside of the viewport of you browser. In D7 it was possible to trim l(_filter_url_trim($link->url, 40), $link->url), a link by code. As views have the same feature, I think it should work the same way.

Steps to reproduce

  1. Output an URL (you may use linkchecker module and see the broken links report)
  2. Change the view and set the url field to
  3. "Trim this field to a maximum number of characters" = 40
  4. "Trim only on a word boundary" - disable
  5. Save and you only see "..." (3 dots) as URL that are also not clickable

Proposed resolution

Allow trimming of URLs like l(_filter_url_trim($link->url, 40), $link->url), has done.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 301158

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>