Help - Search - Members - Calendar
Full Version: "BASE HREF=.." not working with images
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
btrott
Where is that BASE HREF coming from?
euroderph
*** Configuration:
I have installed MT-2.0 on a RedHat 7.2 system.
Rather than install MT under Apache's cgi-bin,
I put it in /var/www/html/mt/, and added it to
Apache's config file, and restarted Apache.
(Thus MT images live in /var/www/html/mt/images/ )
(My Apache document base is /var/www/html/ )
The MT installation procedure ran perfectly.
I am viewing pages using Netscape version 4.78

*** Bug detected:
I have logged in as Melody.  None of the pages
generated by mt.cgi is displaying images correctly.

If I examine the source of the HTML pages generated
by mt.cgi, I see this:

<BASE HREF="http://cs123.pp.htv.fi/mt/">
[..]
<IMG src="/mt/images/mt-logo.gif" [etc.]>

(Note: this "cs123" URL is not visible to others,
only locally.)

According to all the HTML reference pages I checked,
browsers use "BASE HREF" only when resolving relative
URL's, NOT when accessing absolute URL's.
/mt/images/mt-logo.gif" is an absolute URL.  
Therefore no images  :-(

Perhaps mt.cgi has been written to work with quirks
(i.e. standards non-compliance) in Microsoft IE? =:-O

Perhaps there is a quick patch to solve this?

Thanks,
Fred
fbaube@welho.com
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.