[ic] Static Page Searches -Links to more matches

Mike Heins mikeh@minivend.com
Wed, 28 Feb 2001 12:15:10 -0500


Quoting Jimmy Eaton (jeaton@silverclicks.com):
> I am using the UI interface to generate the static pages. The second static 
> page of the search comes back with nothing found. When I click on the 2nd 
> page link on the static firat page of the search it comes back with nothing 
> found. When I add mi=static to the url of the 2nd page link then it comes 
> back ok as some type cached page or search. How do I get the mi=static to 
> show up in the urls for the 2nd, 3rd page links etc. The next and previous 
> page links work ok.
> 

Bug in tag_more_list, here is a patch (which will be in CVS):

Index: Interpolate.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 1.44
diff -c -r1.44 Interpolate.pm
*** Interpolate.pm	2001/02/07 10:28:09	1.44
--- Interpolate.pm	2001/02/28 17:13:29
***************
*** 3026,3032 ****
  	$prefix = $q->{prefix} || '';
  	my $form_arg = "mv_more_ip=1\nmv_nextpage=$page";
  	$form_arg .= "\npf=$q->{prefix}" if $q->{prefix};
! 	$form_arg .= "\nmi=$q->{mv_more_id}" if $q->{mv_more_id};
  
  	if($r =~ s:\[border\]($All)\[/border\]::i) {
  		$border = $1;
--- 3026,3035 ----
  	$prefix = $q->{prefix} || '';
  	my $form_arg = "mv_more_ip=1\nmv_nextpage=$page";
  	$form_arg .= "\npf=$q->{prefix}" if $q->{prefix};
! 	if($q->{mv_more_id}) {
! 		$more_id = $q->{mv_more_id};
! 		$form_arg .= "\nmi=$more_id";
! 	}
  
  	if($r =~ s:\[border\]($All)\[/border\]::i) {
  		$border = $1;

Thanks for finding it!

-- 
Red Hat, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <mheins@redhat.com>

Fast, reliable, cheap.  Pick two and we'll talk.  -- unknown