In my effort to handle 404s without a redirect (see
http://groups.google.com/group/liftweb/browse_thread/thread/4a9806a63419644f),
I am wondering if there is a way to add an item at the end of a
sitemap which matches every url?

E.g. Lift would look through the sitemap for a match, and always match
on the last item if none of the others match.

I've tried this:

  val homepageTemp1 = Template({ () =>
    <lift:surround with="default" at="content">
      <h1>Found me!</h1>
    </lift:surround> })

with this at the end of my sitemap:

    Menu(Loc("Catchall", Pair("" :: Nil, true), "", homepageTemp1)) ::

But it doesn't work, it never matches.  However:

    Menu(Loc("Catchall", Pair("bob" :: Nil, true), "",
homepageTemp1)) ::

That one does match one urls like mysite.com/bob and mysite.com/bob/
1234  etc.

- Alex

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to