Here's a solution I figured out. The problem *does* seem to be
related to the baseURL being set, because the URL is relative to that.
In weblog.vm, the showSearchPager macro has:
<a
href="?q=${utilities.encode($searchResults.term)}&${USERNAME_KEY}=$!{username}&n=${searchResults.limit}&o=${start}"
>$pageNum</a>#if( $pageNum != $numPages) | #end
I changed it to:
<a
href="${ctxPath}/search/${website.handle}?q=${utilities.encode($searchResults.term)}&n=${searchResults.limit}&o=${start}"
>$pageNum</a>#if( $pageNum != $numPages) | #end
And it fixed the problem. I removed the username as a parameter as it
seems reduntant b/w that and ${website.handle}.
Should I enter this as a bug? Is this a proper fix that I can commit?
The current mechanism seems to only work if you don't have a <base
href=""/> in your theme.
Matt
On 5/8/06, Matt Raible <[EMAIL PROTECTED]> wrote:
On 5/8/06, David M Johnson <[EMAIL PROTECTED]> wrote:
> I'm not sure what's going on.
>
> On my site, username is empty, but paging works OK. If you hover over
> the URL for page two of the search you'll see:
> http://rollerweblogger.org/search/roller?q=leo&username=&n=10&o=10
> My HTML looks like this:
> <a href="?q=leo&username=&n=10&o=10" >2</a>
>
>
> On your site, if you hover over the URL for page two of the search
> you'll see:
> http://raibledesigns.com/?q=appfuse&username=&n=10&o=10
> But your HTML looks the same as mine:
> <a href="?q=appfuse&username=&n=10&o=10">2</a>
>
> So Roller appears to be generating the same thing for my site as it
> is for your site. Do you have some sort of redirect or base URL
> setting that could be causing this weirdness.
My base URL is set to http://raibledesigns.com - that's what it should
be right? Where is the code that produces these URLs? I can dig in
and debug to see where the error is happening.
Matt
>
> - Dave
>
>
> On May 7, 2006, at 4:57 PM, Matt Raible wrote:
>
> > When I execute the following search on my site, it brings back a bunch
> > of results. However, I'm unable to page through the results b/c the
> > username field isn't populated in the "page results" URLs at the
> > bottom of the page.
> >
> > http://raibledesigns.com/search/rd?q=appfuse
> >
> > Is this a known issue? Does it happen on other people's sites? Do I
> > have search property configured (from a form element perspective)?
> >
> > Thanks,
> >
> > Matt
>
>