Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After updating the old link title is in weird characters #2620

Open
bassel999 opened this issue Mar 12, 2020 · 6 comments
Open

After updating the old link title is in weird characters #2620

bassel999 opened this issue Mar 12, 2020 · 6 comments
Labels
bug

Comments

@bassel999
Copy link

@bassel999 bassel999 commented Mar 12, 2020

Describe the bug
After updating to the new version, all the new url titles working fine (Arabic characters) but all the old one are in weird characters, when I go back the old version they work fine.

To Reproduce
add Arabic url to the old version then update

Screenshots
https://watannetwork.gyazo.com/83f5a3f08b01e0f1dcfa840d11e337de

Versions
v 1.7.6

@bassel999 bassel999 added the bug label Mar 12, 2020
@dgw

This comment has been minimized.

Copy link
Member

@dgw dgw commented Mar 13, 2020

when I go back the old version

Which old version?

@bassel999

This comment has been minimized.

Copy link
Author

@bassel999 bassel999 commented Mar 13, 2020

when I go back the old version

Which old version?

v 1.7.2

@ozh

This comment has been minimized.

Copy link
Member

@ozh ozh commented Mar 14, 2020

Maybe a cheap fix for this could a plugin to update all link descriptions (ie fetch all long URL, mark those missing as 404 to allow for deletion and update title accordingly when applicable)

@ozh

This comment has been minimized.

Copy link
Member

@ozh ozh commented Mar 14, 2020

Pinging @joshp23, maybe his plugin https://github.com/joshp23/YOURLS-Update-30X is just what is needed

@bassel999

This comment has been minimized.

Copy link
Author

@bassel999 bassel999 commented Mar 14, 2020

Pinging @joshp23, maybe his plugin https://github.com/joshp23/YOURLS-Update-30X is just what is needed

The only problem that I'm not so advance with API :) and the plugin looks like it need api

@joshp23

This comment has been minimized.

Copy link
Contributor

@joshp23 joshp23 commented Mar 15, 2020

I'm not so advance with API :)

Well, the good news is that getting started with curl to trigger an api call is pretty straightforward.

The Update-30X plugin checks existing long urls for redirects, storing the final destination. It also provides a list of unreachable links in the return call, which was intended to make adding 404 management trivial.

For title updating, you might take a look at this title re-fetch plugin I threw together.

If it's useful to you, I also make use of a URL-Health Check plugin which does what Update -30X does and more when links are initially submitted. It needs some work, particularly when determining reach-ability of links, but is reliable.

I like the idea of working these into a unified link-management / housekeeping plugin, periodically addressing 30X and 40X errors, and cleaning titles with a cron job. But in the meantime the title refetch plugin would be my suggestion in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.