[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Webglimpse Home]

Re: Line number option & relative links



At 03:44 PM 5/2/00 -0500, Stephanie Fassnacht wrote:
>If the line number option in the Webglimpse search box is turned on,
>then clicking on one of the line numbers on the search results page
>takes the viewer to a page in a "parallel universe" created by
>glimpse.   None of the relative links on this "virtual" page are correctly
>referenced.   This doesn't happen when the viewer clicks on a page
>reference (as opposed to a line reference) of the search results
>page.  In this latter case, the viewer is taken to the real web page,
>and all the relative links work fine.  

Probably also some pages don't have <TITLE> tags?  The jump-to-line code
calls getfile, which inserts a <BASE HREF="url"> tag right before any
<title> tag.  

You can change this to use any reliable tag in the beginning of your
documents, by changing this line in getfile (lives in the webglimpse home
directory, not the cgi-bin):

150:       $baseurl && 
151:			s#<title>#<BASE HREF=\"$baseurl\">$&#i;

to something like

150:       $baseurl && 
151:			s#<\/head>#<BASE HREF=\"$baseurl\">$&#i;

(that would put the <BASE HREF..> tag right before any </head> tag; or you
can pick any reliable tag that does appear near the top of all your documents)

Sorry it took so long to get back to you, I had put the question aside to
look into and forgot about it for awhile!

Hope the above helps...

--Golda

------------------------------------------------------------
Golda Velez         gvelez@iwhome.com	        520-620-6878
Internet Workshop                          http://iwhome.com
Webglimpse Search Software             http://webglimpse.net
		~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Help organize the world - index your own corner of the web