开发者

HybridUrlCodingStrategy not compatible with google?

开发者 https://www.devze.com 2023-04-03 06:17 出处:网络
We use MixedParamHybridUrlCodingStrategy in our Wicket application in order to have pretty url parsed by google. Url pattern :

We use MixedParamHybridUrlCodingStrategy in our Wicket application in order to have pretty url parsed by google. Url pattern :

http:开发者_如何学编程//host/domain-objecs/{id}/a-long-title-for-my-object

The page has some ajax stateful components.

When someone opens one of theses pages he is automatically redirected on :

http://host/domain-objecs/id/a-long-title-for-my-object.0

This is a problem for google which indicates crawling error due to the redirect.

Have you any ideas of how to resolve this problem? Not redirecting when the user-agent is a robot?


Finally I solved the problem by making my page stateless.

I used the framework jolira http://code.google.com/p/jolira-tools/wiki/stateless to replace my links and a statelessForm in place of a classical form.

0

精彩评论

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