Issue with current_page title token when title contains apostrophe

Created on 8 December 2017, about 7 years ago
Updated 11 May 2023, over 1 year ago

The twitter share link is not working with [current_page:title] in the status part of api link when there is an apostrophe in the page title.

The url does encode the apostrophe into "'" but I assume it is the ampersand here that prevents the rest of the title from appearing in the tweet preview.

In fact the link would actually work better if it wasn't encoded I guess, but I see why it is being...

I was looking for an alternative token that might be used like the meta tag title for the page so you could manually override when a title was causing a problem, but not sure if there is a way to do that.

Are there any workarounds to this?

Thanks

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom gsquirrel London

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024