You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to yeso...@googlegroups.com
I have been trying to figure out how to get the current URL for the page.
The closest that I have gotten is: renderfunc <- getUrlRender aurl <- getCurrentRoute let surl = case aurl of Just u -> renderfunc u Nothing -> ""
I get the error:
Foundation.hs:101:46: Couldn't match type `sub' with `App' `sub' is a rigid type variable bound by the type signature for defaultLayout :: GWidget sub App () -> GHandler sub App RepHtml at Foundation.hs:85:5 Expected type: Route App Actual type: Route sub In the first argument of `renderfunc', namely `u' In the expression: renderfunc u
I am sure this is very easy to get around, but I cannot think of the way.
Any thoughts on the matter would be appreciated.
Michael Snoyman
unread,
Oct 10, 2012, 1:58:44 AM10/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to yeso...@googlegroups.com
The missing piece here is getRouteToMaster[1], which takes a route
from the subsite and turns it into a route for the master site. So
you'd end up with: