Create new topic by pasting fails when URL is too long



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

Example (on

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:,

I know this URL does not exist. But I did not know the URL limit for 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?

Paste links if you have short topic title length
(Eli the Bearded) #2

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.


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

(Jeff Atwood) #4

Sure we should fix this next week @neil

(Neil Lalonde) #5


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.

(Neil Lalonde) #6

(Neil Lalonde) #7

(Daniela) #8

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 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
instead of

What do you think?

(Neil Lalonde) #9

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:

(Daniela) #10

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

(Neil Lalonde) #11