这是我的网址结构:(着陆页)
/locale/villas/
Listing of all the villas with url's pointing to the country and region. Examples:
/locale/italy/tuscany/villas/villa-r
/locale/italy/tuscany/villas/villa-t
/locale/italy/umbria/villas/villa-u
/locale/spain/andalusia/villas/villa-a
etc...
/locale/country/villas/
Listing of the villas in the specified country with url's pointing to the country and region. Examples:
/locale/italy/tuscany/villas/villa-x
/locale/italy/tuscany/villas/villa-y
/locale/italy/umbria/villas/villa-z
etc...
/locale/country/region/villas/
Listing of the villas in the specified country and region with url's pointing to the country and region. Examples:
/locale/italy/tuscany/villas/villa-x
/locale/italy/tuscany/villas/villa-y
/locale/italy/umbria/villas/villa-z
etc...
当访问者访问目标网页/locale/villas
并点击其中的别墅时,它会进入
/locale/italy/tuscany/villas/villa-x
(villa-x有多页),它们属于“托斯卡纳环境”。
现在我想制作一个“返回搜索结果”按钮,然后返回初始/listing
页面。我怎样才能做到这一点? :back
不是一个选项,因为别墅有多个页面。
答案 0 :(得分:0)
您可以使用缓存。因为缓存对象在控制器和视图上也可用。
您应该在视图中设置缓存对象中的URL,并从该特定链接上的控制器重定向。