Permalink
Browse files

Fixed a weirdness in Param menus

  • Loading branch information...
1 parent a9a83d2 commit 57b199980268c1023c9972cdd7d4eb0409f175ad @dpp dpp committed Feb 24, 2011
Showing with 7 additions and 8 deletions.
  1. +7 −8 web/webkit/src/main/scala/net/liftweb/sitemap/Menu.scala
@@ -144,9 +144,9 @@ object Menu extends MenuSingleton {
val link = new Loc.Link[T](ParamMenuable.this.path,
ParamMenuable.this.headMatch) {
- override def createLink(in: T) =
- Full(Text(ParamMenuable.this.path.mkString("/", "/", "/")+
- urlEncode(ParamMenuable.this.encoder(in))))
+ override def createPath(in: T): String =
+ ParamMenuable.this.path.mkString("/", "/", "/")+
+ urlEncode(ParamMenuable.this.encoder(in))
}
/**
@@ -271,11 +271,10 @@ object Menu extends MenuSingleton {
val link = new Loc.Link[T](ParamsMenuable.this.path,
ParamsMenuable.this.headMatch) {
- override def createLink(in: T) =
- Full(Text(
- (ParamsMenuable.this.path :::
- ParamsMenuable.this.encoder(in).map(urlEncode)).
- mkString("/", "/", "")))
+ override def createPath(in: T): String =
+ (ParamsMenuable.this.path :::
+ ParamsMenuable.this.encoder(in).map(urlEncode)).
+ mkString("/", "/", "")
}
val pathLen = ParamsMenuable.this.path.length

0 comments on commit 57b1999

Please sign in to comment.