开发者

Wicket: how to dynamically add meta robots : noindex if URL contains the string "?wicket:"

Where would I start off with this? I know how to add meta tags to the page, I guess Page#onBeforeRender is a good place to do so. But: how do I determine whether the current URL containts "?wicket:"?

Calling

((WebRequest)getRequest()).getHttpServletRequest().getRequestURL()

only returns the part before the questionmark, and getPageParameters() returns null.

Thanks for inspiration in a开发者_运维百科dvance :)


Yeah..... right again, I stumbled across the answer right after posting:

((WebRequest)getRequest()).getHttpServletRequest().getQueryString()

I am sorry for bothering you.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜