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

Instant Custom Shorten Not Working #2251

Closed
johnyradio opened this issue May 17, 2017 · 5 comments
Closed

Instant Custom Shorten Not Working #2251

johnyradio opened this issue May 17, 2017 · 5 comments

Comments

@johnyradio
Copy link

johnyradio commented May 17, 2017

Technical details

  • YOURLS version: 1.7.2
  • PHP version: 5.6.29 (FastCGI)

Reproducible Bug Summary

  1. Log into my yourls admin screen
  2. Click "Tools"
  3. Drag "Instant Custom Shorten" to bookmarks bar
  4. Browse to any desired webpage
  5. Click "Instant Custom Shorten" in bookmarks bar
  6. See popup
  7. Enter desired short name
  8. Browse to my yourls admin screen
  9. The new short url i just created is not there

This is a bug because... the bookmarklet does not create a short url

@ozh
Copy link
Member

ozh commented May 17, 2017

This is a very typical case of "if that was broken, someone from the tens of thousands of people using YOURLS would have been reporting it ages ago".

This definitely works.

Maybe refine step 4 and see if the problem is the one reported in #1662.

Feel free to comment with additional details if applicable, see in particular https://github.com/YOURLS/YOURLS/wiki/Troubleshooting-first-steps#use-your-browser-developer-tools

@ozh ozh closed this as completed May 17, 2017
@johnyradio
Copy link
Author

johnyradio commented May 28, 2017

This is a very typical case of "if that was broken, someone from the tens of thousands of people using YOURLS would have been reporting it ages ago".

Seems it's a typical case of "someone did report it, and it's a known issue."
This definitely does not work, and appears to be a browser limitation, as you explained in your post

easy fix, the Custom Shorten tool works with no problem on secure sites. (not the "Instant" tool.)

@nemws1
Copy link

nemws1 commented May 7, 2023

Bug still exists - at least for Firefox. Works in Chrome, though.

@sokai
Copy link

sokai commented Oct 18, 2023

AFAIK this problem is related to a wrong/missing Content Security Policy (CSP) of the server (where YOURLS is running). (Here you can test the CSP and here you will find more information.)

If there is someone who can and is willing to share working CSP (with Nginx), I would be delighted. #ty

@Istria1704
Copy link

Istria1704 commented Nov 19, 2023

I have the same or a similar problem. I just installed yourls using docker-compose. And I'm using Nginx Proxy Manager to forward "link.mydomain.com" to the ip and port of the server docker is running on.

It worked once or twice though. Then it stopped.

  • I added the Instant Shorten bookmark to my bookmarks bar.
  • Browsed to a random site.
  • Clicked the bookmark
  • A wild popup appears
  • entered "askjdhsakjdhsad" and hit enter
  • another wild popup appears showing http://link.mydomain.com/askjdhsakjdhsad
  • hit enter again
  • And there it was, added in yourls.

On later attempts, only the first popup shows up. But after clicking OK, the second popup doesn't show and nothing is added in yourls. I tried it in Edge and in Thorium (Chromium-based). The time it did work, was in Thorium.

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

No branches or pull requests

5 participants