开发者

How to do a page redirect in lift

开发者 https://www.devze.com 2023-02-19 23:45 出处:网络
I have the need to be able to redirect the current page request to a news page url. Based on the params of the incoming request I retrieve data from the database and in case nothing is found I redire

I have the need to be able to redirect the current page request to a news page url.

Based on the params of the incoming request I retrieve data from the database and in case nothing is found I redirect the user to another page.

This is very easy to do in MVC but due to my inexperience with the view-f开发者_StackOverflow中文版irst paradigm it is not very clear what the best way to do this is.

Kind regards,

Jaron


Do you require anything else than?

S.redirectTo(url)


have you tried method RedirectTo of object JsCmds? [doc of this here]

It is javascript-based redirect, which is using location.href call, but it could help you.

good luck

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号