Derek,

I've made the default behavior to not pass requests to the container (you
can change the default in LiftRules.)

That will address the "raw" template being displayed.

Now... I have no idea why you need an "index" and a ""  List("index") always
matches for me.

Are you using 0.10-SNAPSHOT?

Thanks,

David

On Fri, Nov 21, 2008 at 4:08 PM, Derek Chen-Becker <[EMAIL PROTECTED]>wrote:

> I may be missing something here, but when I browse to the root of my webapp
> context:
>
> http://foo.com/context/
>
> I get served up the index.html template *unprocessed*. If I use the full
> URL instead:
>
> http://foo.com/context/index
>
> I get the processed template. The only thing I did was add a SiteMap to my
> Boot:
>
>   val entries = Menu(Loc("Home", "index" :: Nil, "Home")) ::
>     Menu(Loc("Search", "search" :: Nil, "Search")) ::
>     Nil
>
> If I change the Link from "index" to "" then I still get the unprocessed
> template if I use the first URL, and the second URL gives me a 404 error. If
> I add in a dummy menu entry instead:
>
>   val entries = Menu(Loc("Home", "index" :: Nil, "Home")) ::
>     Menu(Loc("HomeEmpty", "" :: Nil, "HomeEmpty", Hidden)) ::
>     Menu(Loc("Search", "search" :: Nil, "Search Studios")) :: Nil
>
> Then both URLs work, but that seems redundant since I thought David had
> stated before that URLs ending in "/" were automatically changed to
> ".../index". I could have sworn that this worked with a single menu entry
> before, but my memory isn't always great. Another interesting thing to me is
> that I thought that without a Menu entry templates are denied (404) by
> default, so it's really strange that I'm getting the raw template back.
>
> Derek
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to