开发者

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

开发者 https://www.devze.com 2022-12-18 01:25 出处:网络
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.

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

精彩评论

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