Naming links inside html imported from url.

13 views
Skip to first unread message

vasko

unread,
Jul 13, 2010, 10:15:41 AM7/13/10
to MailChimp API Discuss
Hi.

I want to send campaign which content is html imported from specified
url.In the html there are 'inside naming links'. - at the top of the
mail there are lets say sections , and when clicking on them used
should be taken down the page to the appropriate section.In the html
code it looks like:
<a href="#section1" > Section1 </a> and the section has 'name'
parameter like this: <a name="section1">Section1</a>

However , when i receive the mail , top navigation links redirect to
the content url instead of to the email html page.
For example, if the content url was "http://vasko.content.html" , when
clicking navigation link that has href="#section1" , it goes to
"http://vasko.content.html/#section1".

Is there any workarround for this.

Thank you for your time , Vasko.

jesse

unread,
Jul 13, 2010, 12:00:54 PM7/13/10
to MailChimp API Discuss
This has been corrected.


jesse

vasko

unread,
Jul 14, 2010, 5:47:22 AM7/14/10
to MailChimp API Discuss
Hi jesse.

I tried it and the the problem is still there - i receive an email
with 'page links' and when i click on them i am taken to the url from
which the email's content is taken.
Clicking on <a href="#section1">section1<a/> takes me to "http://
vasko.content.html/#section1" instead of to the link in the email <a
name="section1">Section1<a/>.
Is the something that i have to fix in the content that should prevent
the undesired behaviour.

Thank you , Vasko.

jesse

unread,
Jul 14, 2010, 10:58:57 AM7/14/10
to MailChimp API Discuss
I can't replicate the issue any more. You did create a new campaign or
update the content after the fix, correct? Once you've imported
content, we don't touch it again.


jesse

vasko

unread,
Jul 14, 2010, 11:29:11 AM7/14/10
to MailChimp API Discuss
Well , I have one main campaign that i replicate every time. This main
campaign has its content imported from url that i have specified. The
content in that url is dynamically generated. So first question is -
when i replicate the main campaign , will the replicated campaign
import again the content from the url , or it will use the content
already imported in the main campaign. I believe that i have tested it
and the replicated campaign indeed imports the content , but better to
ask.Please correct me if i am wrong and you are using the content
imported in the main campaign - this is very important for me.

About the issue with "page links". I create new campaign , for the
content i use the option "Import from URL". And the issue persists.
Tomorrow i will try to send you an email from such a campaign so that
you can see the exact problem. I believe that the issue is related to
the fact that i am using URL to import content.And somehow in the
content there is saved <base url> information and links like <a
href="#section1"> actually redirect to url#section1. I will test again
tomorrow and i hope you are right that issue can't be recreated, but
when i tested it today it was still there. Is it possible that you
tell me was there such a problem that and what kind of actions you did
to fix it.

Thank you for your time , Vasko.

vasko

unread,
Jul 14, 2010, 11:34:08 AM7/14/10
to MailChimp API Discuss
From your last answer i thought that we may be talking about different
things , so i will explain again. When i go in the replicated campaign
and i click "Popup preview" - there everything is fine and in the
popup window , when i click Section1 , the page is scrolled down to
section1. But when i actually send the campaign and i open the email
(with Thunderbird for example) the section links in the real email
point to the URL from which the content was imported.

Thanks , Vasko.

jesse

unread,
Jul 15, 2010, 6:49:30 PM7/15/10
to MailChimp API Discuss
Ok, yeah, I for some reason had importing from archives on the brain.
The problem as you noticed is that we insert a <base> tag into
imported html. That's great since it means you can code the html just
like you normally would with relative urls, images srcs, etc. That
will, however, absolutely kill the ability for anchor tags to work.

IF you know that you will have full urls in your content, add a blank
base tag and we won't override it. Something like this:
<base href="">

should work fine.


jesse
Reply all
Reply to author
Forward
0 new messages