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

Prefix-n-Shorten fails in Chrome because address bar hides http:// #1863

Closed
ryanmr opened this issue Mar 10, 2015 · 1 comment
Closed

Prefix-n-Shorten fails in Chrome because address bar hides http:// #1863

ryanmr opened this issue Mar 10, 2015 · 1 comment

Comments

@ryanmr
Copy link

ryanmr commented Mar 10, 2015

(First time issue writer, advanced apologies for doing it wrong.)

In Chrome, the address bar hides the http:// part of a url, unless it is https:// in which case Chrome leaves it alone. When using the prefix-n-shorten, since Chrome hides the http:// on most pages, the shortening will fail.

Expected behavior: the shortened url shown on the admin panel after using the prefix-n-shorten shortcut of YOURLS.
Actual behavior: the landing page of my YOURLS installation.

Steps to reproduce:

  1. Open Chrome
  2. Go to non-https page
  3. Prefix the URL on said page in the address with the yourls installation path
  4. Fails to produce the shortened url

Example:

Other information:

  • PHP 5.5.9
  • MYSQL 14.14
  • Ubuntu 14.04
  • YOURLS 1.7

I love using the prefix-n-shorten feature, and while this is annoying, I end up just typing the http:// by hand. Even if there is no way to fix this, I figured it might helpful to document somewhere.

@ozh
Copy link
Member

ozh commented Mar 11, 2015

This is a browser issue, nothing YOURLS can fix (how to know if http://sho.rt/omg.com is a short URL or a shortening attempt?)

In Firefox: about:config then set browser.urlbar.trimURLs to false

In Chrome, there's probably something similar. Not a user, I don't know, but Google will probably be your friend :)

@ozh ozh closed this as completed Mar 11, 2015
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

2 participants