bad link when simply pasting an url into a post

Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
I'm noticing something happening in all posts when using the Editor (comments, group discussions, and forum discussions). Happens on both my sites, and in Chrome and FF.
This happens when NOT using any editor buttons to add a link, --only happens when a member is pasting an url into their post directly.
Ones types normally, then types a space and then pastes an URL in. The result is a hotlink that you can click but it takes you back to simply the refreshed page. It also inserts these two weird diamond shapes with question marks in them instead of the space. (SEE SCREENSHOT) This is what the post's code would look like (as an example):
<p>test- http://everythingdulcimer.com/discuss/search.php?search_id=newposts</p>

Note that if you paste in the same url at the start of a new line (after hitting enter while typing), the hotlink is functional and works correctly. In that instance, the post's code looks something like this instead, and looks normal:
<p>test</p>
<p>http://everythingdulcimer.com/discuss/search.php?search_id=newposts</p>

diamondLink.jpg
diamondLink.jpg  •  173KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/16/17 06:55:15PM
brian
@brian
8 years ago
10,149 posts
You have some funky characters that you are including in your URL when cutting and pasting - even though you can't see them, they are there at the beginning of the URL. If I take your same URL and cut and paste it here:

test: http://everythingdulcimer.com/discuss/search.php?search_id=newposts

You'll see there's no "diamonds". Whenever you see those "diamonds" what that means is there is a character (or characters) that cannot be represented in the current page encoding, and so the browser shows you those symbols to let you know it is there. That is coming from the site you are cutting from.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 02/12/17 03:37:47PM
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
But.. if we both just now cut and pasted the exact same url from the same site, then why do I get the diamonds on my jr site and you don't get them here?

and... how come it doesn't happen if I paste the url in at the beginning of a line break?...but does happen with the exact same pasted url after a space?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 02/12/17 04:12:49PM
brian
@brian
8 years ago
10,149 posts
Because I copied the URL from your paste here, and make sure to get just the URL.

What is the URL to the site you are coping from?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
the main site in question is: http://everythingdulcimer.com/discuss/index.php
domain is: everythingdulcimer.com


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
Hmm, does it do the diamond thing here after a colon and space: http://everythingdulcimer.com/discuss/search.php?search_id=newposts

...No, not doing it, and the link works fine. BUT...it did put the url on a new linebreak i notice. Even though I pasted the url in midsentence, after a space (I didn't hit enter to line break).


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 02/12/17 04:16:59PM
brian
@brian
8 years ago
10,149 posts
There's a LOT of URLs on that site. Can you post me the URL to the page where you were cutting and pasting from?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
8 years ago
10,149 posts
Strumelia:
Hmm, does it do the diamond thing here after a colon and space:

No - the "diamond thing" are hidden characters. When you are "cutting" from the site, you are pulling these characters into your clipboard along with the URL.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
8 years ago
10,149 posts
Just to be sure, this is not a Jamroom issue - it has nothing really to do with Jamroom - it's just characters that cannot be represented in the encoding you are using on your site (i..e UTF8).


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
It was an url to a forum's page that shows all discussions sorted by 'newest/latest'. That's why you see lots of discussions there. Do you need a simpler url that does the diamond thing? (yes, i do understand what you explained about the diamonds)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 02/12/17 04:20:45PM
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
Ok, I just tried it by copy/pasting the url to Google.com
I got the same results- when pasting it after a space, I get the diamonds and the link goes nowhere. When pastin gthe same url after a line break, it works correctly. Screenshot:
Will try on Safari now....
image2.jpg
image2.jpg  •  52KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
8 years ago
10,149 posts
Do you have any browser plugins that might be messing with your clipboard?

Here's google pasted after a space:

test https://www.google.com/


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
Same thing on Safari, FF and Chrome.
When I paste the url to https://www.google.com/ after a space, link is no good and get the diamonds. If I paste the very same url in a new line (after hitting 'enter' to line break) then all works fine.
image3.jpg
image3.jpg  •  23KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
8 years ago
10,149 posts
Are you pasting this into the editor?

Edit: just tested here and don't see any issues.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 02/12/17 04:32:18PM
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
I could ask my moderators if they are seeing the diamonds in my posts.
Yes, posting it right into the editor right into a sentance without using any buttons (the button functions seem to work fine BTW)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 02/12/17 04:32:43PM
brian
@brian
8 years ago
10,149 posts
Strumelia:
I could ask my moderators if they are seeing the diamonds in my posts.

Right now I'm not able to replicate, so am not sure what to recommend.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
Let me try it on my iPad. Back in a minute.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
Yes, it's happening on my iPad too, in both Safari and Chrome. Used the url for google.com :( Weird.

We did a little fixing up of how hotlinks got pasted and displayed in posts while using the editor's Link button and Embed media button a week or so ago, but I am not connecting that in my mind to this, since not using the editor buttons for this.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 02/12/17 04:42:17PM
brian
@brian
8 years ago
10,149 posts
Yeah I've never seen this. I guess it could be a bug in the editor. We do have an updated editor coming in the next core release, so we'll need to see if it is an issue after that.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
I saw it in some of my site member's posts lately, so it's not just me posting them on my sites. Perhaps another JR customer will see this and chime in if they're getting it too. Meanwhile i can wait until the next core update and check it again then.
Thanks for your efforts Brian!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015