Create new topic by pasting fails when URL is too long

Hello!

I have a problem with new feature that creates new topic when a user directly paste a URL in title section.

Example (on try.discourse.org)

As you can see, the “url” before the edited title appears truncated because are a “limit” to title.
So, if the URL exceeds that limit, does not paste correct URL.

For this example I used: https://blog.discourse.org/2017/03/moving-from-facebook-groups-to-discourse/more-text-to-url-more1-more2-more3-more4-more5-more6-more7-8-9-10-11-12-13-14-15-16,

I know this URL does not exist. But I did not know the URL limit for try.discourse.org site. :stuck_out_tongue:

I hope you can understand me.

I need to know how to fix the problem, and edit the new topic.

I mean, when a user creates a new topic from one URL, the link informed below the title, how edit that link?

2 Likes

Let me restate to make sure it is clear:

Very long URLs used to create a post in Reddit style get wrongly clipped to the length of the title size limit without warning or error messages.

3 Likes

Exactly.
And, you (as admin or staff member) cant edit the url clipped. :cry:

1 Like

Sure we should fix this next week @neil

3 Likes

Fixed.

If pasting links is allowed, the title field will allow you to enter a string that’s too long. After oneboxing completes, the title input will be replaced with the title of the input as usual. You can then edit the title so it isn’t too long.

6 Likes

It’s something related to this topic too Paste links if you have short topic title length and I think the cause is the site settings max topic title length (set to 60)

I’ve upgrade discourse to beta 12 some days ago and I see that the link in the title works even if it’s very long as @neil said .
Btw in the message, the link is truncated. This is not a real bug because in the preview (or if you save the message) the onebox works fine as you can see here https://forum.adunanza.net/t/l-ex-boss-di-automator-in-apple-annuncia-la-cmd-d/13471 but I do not think it is a correct behavior.

After saving the post I have reopened it and I see that the link remains truncated as you can see here https://forum.adunanza.net/raw/13471

http://www.macitynet.it/lex-responsabile-sistemi-automazione
instead of
http://www.macitynet.it/lex-responsabile-sistemi-automazione-apple-annunciato-la-cmd-d-conference/)

What do you think?

I can’t reproduce this, and the fix was only 22 hours ago so I don’t think you have the fix.

With max title length of 40:

1 Like

Surely I don’t even this fix yet. I’ll upgrade the site tomorrow morning to see the fix in action, thanks!