The embedded link that shows on the edit page doesn't get the proper link when you preview changes rather than save changes.

Attached patch fixes this issue.

CommentFileSizeAuthor
emfield_preview_embedded_link.patch902 bytesmoonray

Comments

alex ua’s picture

Status: Needs review » Needs work

As far as I can tell the embedded link still doesn't work at all. I tested on youtube and it shows the correct link as text, but the actual hyperlink goes to an incorrect page. Here's the html that I'm seeing (%YouTubeID% is a sub for the actual id):

 (youtube ID:
<a href="http://www.youtube.com/watch?v=http://www.youtube.com/watch?v=%YouTubeID%">http://www.youtube.com/watch?v=%YouTubeID%</a>
) 

It looks like the problem is that the entire url is getting passed to the link function, rather than just the id. I'm pretty sure this is a long standing issue.

aaron’s picture

Status: Needs work » Closed (duplicate)