Skip to content

Increase "Original URL" columns character limit #3107

Answered by dgw
TritonB7 asked this question in Q&A
Discussion options

You must be logged in to vote

The long URL for display (long_url_html) goes through yourls_trim_long_string():

'url' => array(
'template' => '<a href="%long_url%" title="%title_attr%">%title_html%</a><br/><small>%warning%<a href="%long_url%">%long_url_html%</a></small>',
'long_url' => yourls_esc_url( $url ),
'title_attr' => yourls_esc_attr( $title ),
'title_html' => yourls_esc_html( yourls_trim_long_string( $title ) ),
'long_url_html' => yourls_esc_html( yourls_trim_long_string( urldecode( $url ) ) ),
'warning' => $protocol_warning,
),

and yourls_trim_long_string() has a trim_long_string filter you could…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ozh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants