{"issue":{"created_at":"2011-11-24T12:54:18Z","state":"open","updated_at":"2011-11-24T12:54:22Z","comments":4,"user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","login":"importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"If you specify a hyperlink in the newsletter editor where the text that is between the opening and closing A tag (the displayed link text) is the same as the value of the HREF attribute AND the displayed link text also displayed within the same P tag as the A tag then TL (or TinyMCE) messes up the displayed link text by prepending the base url to it.\n\nReproducible in my TL v2.6.2, the demo site (both 2.6.5 and 2.6.6).\n\nTo reproduce it log into the demo and go to Newsletters and create a new newsletter channel.\n\nThen create a new newsletter and paste the following in the HTML content box:\n\n```\n<p>And from our website you can visit our new Online Shop or click the following link now to go straight \nto our shop area: <a title=\"Online Shop\" href=\"shop\">Online Shop</a></p>\n```\n\nNote the word \"shop\" in \"shop area\" is the same as the HREF attribute...\n\nNow save and close then you can see in the preview area of it that it displays the following:\n\n```\nAnd from our website you can visit our new Online Shop or click the following link now to go straight \nto our http://demo.typolight.org/shop area: Online Shop\n```\n\nWhat happened was that it wrongly prepends the base url to the word \"shop\" that was outside the A tag.\n\nThe actual A tag is constructed fine though.\n\nThe workaround is to specify the full URL in the HREF attribute of the A tag rather than a relative URL. e.g. \"http://demo.typolight.org/shop\" rather than just \"shop\".\n\nRegards\n\nJames\n\n--- _Originally created by jamesm on February 7th, 2009, at 12:38am (ID 493)_","assignee":{"gravatar_id":"360d94de41513598ac4440d46a3dab1b","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/360d94de41513598ac4440d46a3dab1b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"labels":[{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/issues/labels/Defect"},{"name":"newsletter","color":"e6e6e6","url":"https://api.github.com/repos/contao/issues/labels/newsletter"}],"id":2341223,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":493,"title":"Newsletter external link bug","closed_at":null,"html_url":"https://github.com/contao/issues/issues/493","milestone":{"created_at":"2011-11-24T11:46:57Z","state":"open","due_on":null,"closed_issues":1,"creator":{"gravatar_id":"360d94de41513598ac4440d46a3dab1b","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/360d94de41513598ac4440d46a3dab1b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"number":10,"description":"TYPOlight 2.6.7 (maintenance release)","title":"2.6.7","open_issues":1,"url":"https://api.github.com/repos/contao/issues/milestones/10"},"url":"https://api.github.com/repos/contao/issues/issues/493"},"action":"created","comment":{"created_at":"2011-11-24T12:54:22Z","updated_at":"2011-11-24T12:54:22Z","user":{"gravatar_id":"360d94de41513598ac4440d46a3dab1b","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/360d94de41513598ac4440d46a3dab1b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"--- _Originally closed on March 9th, 2009, at 08:27pm_","id":2863951,"url":"https://api.github.com/repos/contao/issues/issues/comments/2863951"}}