2008/9/25 Anna Larsson <[EMAIL PROTECTED]>:
>
>
>>>Try adding the attributes
>
>>>url-generator="no.sesat.search.view.navigation.NewsCaseUrlGenerator"
>
>>>prefix="/nyheter/" to the navigation element and see if that helps
>
>>>you.
>
>
>
>
>
>>First test local works great with the attributes added! =)
>
>>Thanks! =)
>
>
>
>
>
> Turns out that this fix doesn't work for "fördjupningar" but works for
> "personer".
>
>
>
> After I added the attributes above, the link gets rewritten wrongly for
> "fördjupningar"
>
>
>
> On a "fördjupning" page:
>
> http://electron.test.sesam.se/nyheter/tema/F%C3%B6rsvarsmakten
>
> Click on next page link:
>
> http://electron.test.sesam.se/nyheter/sak/F%C3%B6rsvarsmakten/?offset=46
>
>
>
> Then the link writes "sak" instead of "tema".
>
> Had to roll back this on electron before updating gamma today, the first bug
> was better than this.
>
>
>
> How do we fix this for next release?
>
> So it keeps type parameter but doesn't rewrite "tema" to "sak"
>
>

Try replacing:

<fast id="cases" field="newsCase">
  <static-parameter name="type" value="sak"/>
</fast>

with

<fast id="cases" field="newsCase">
  <static-parameter name="type" value="tema"/>
</fast>

There are two things involved here. The above configuration adds the
parameter "type" with value "tema" to the URL. The URL generator then
rewrites this parameter to a path segment.

- Magnus
_______________________________________________
Kernel-development mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-development

Reply via email to