If your sitelet uses Sitelet.Infer, then you can do something like this:

1
2
3
4
5
6
7
8
9
10
11
type MyAction =
    | Index
    | ....

let router = Sitelets.Router.Infer<MyAction>()

[<Rpc>]
let MyRpc() =
    async {
    	return router.Link(MyAction.Index).Value.ToString()
    }
By on 5/6/2015 1:44 AM ()

Sitelet contexts (and thus ctx.Link) are only available at the sitelet level. One solution is to generate the URL where you want to redirect there and pass it downstream.

By on 5/4/2015 8:01 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper