• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

URL-shortener problem (YOURLS)

Status
Not open for further replies.

kastrup92

Chevereto Member
Sorry to make two tropics in a row but I'm having some problems with the url-shortener now I got the first problem solved.
I'm using YOURLS that I have on another website.
It's works fine and all, but it seem to request for a tiny URL twice, since there are coming two new urls for the same pic in the YOURLS admin panel.

The custom_short_url_api I use is:
Code:
http://website.com/yourls-api.php?signature=APIKEY&action=shorturl&format=simple&url=
(if that is any help)
 
Solved!

The problem was caused because the current implementation ask for a shortened url every time. So, everytime that someone see the viewer a new url will be made (For me when the pic was created and when I get to the /?v=pic.jpg page). This is due because Chevereto doesn't use dB by the moment. (From Rodolfo)

It can be solved by setting 'YOURLS_UNIQUE_URLS' to true in the config.php on your URL-shortener service (YOURLS).
This will make YOURLS to return the already created url and send back to chevereto.
(It disallow multiple short URLs for a same long URL)
 
Status
Not open for further replies.
Back
Top