You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by ROSSEL Olivier <ol...@airbus.com> on 2002/06/17 18:56:25 UTC
map:redirect.
I have this map:match:
<map:match pattern="*(*)**">
<map:act type="resource-exists">
<map:parameter name="url" value="docs{3}"/>
<map:aggregate element="slash-edit" label="agg">
<map:part src="editor/docs/{../2}-config.xml"/>
<map:part
src="cocoon:/content-{../1}({../2},{../3})"/>
</map:aggregate>
<map:transform
src="editor/stylesheets/editor-page2html.xsl"/>
<map:serialize type="xhtml"/>
</map:act>
<map:redirect-to uri="../new({2}){3}"/>
</map:match>
For URL such as:
see(bravo)/foobar
If the file foobar does not exist, we have a redirection to:
see(bravo)/../new(bravo)/foobar
That is to say that we redirect to:
new(bravo)/foobar
Which is handled by another pipeline correctly.
But if the first URL is:
see(bravo)/foo/bar
If the file bar does not exist, we have a redirection to:
see(bravo)/foo/../new(bravo)/foo/bar
That is to say that we redirect to:
see(bravo)/new(bravo)/foo/bar
which does not correspond to any URL pattern I use.
How can I get the part of the URL that is BEFORE the URL matched by the
current
(sub)sitemap. So I can recreate the redirection URL all from those basic
informations?
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>