Problem with <BASE> and <A href="#...">

C

cipher

Hi there,

I ran into a problem using <a href="#some_anchor"> in combination with
<base href="...">.

I have a PHP-script which creates a report in HTML from a database.
The script is called in two ways:
1. directly via browser
2. and by a cronjob with mails the report to a mailing list
The report contains both links to anchors inside the same document and
links to external resources. Calling the script by a browser works
fine. The mailed report contains an additional <BASE> to get valid
links to external resources, but the links to the anchors inside the
report are now wrong. (Using such a link forces the browser to reload
the HTML document from server before jumping to the anchor. This may
lead to a wrong report, if some records in DB has changed since
mailing the correct report)

Do I have to rewrite all external links or is there a better solution?


thx,

Markus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top