2014-03-27 124 views
0

這是我的URL結構:(着陸頁)返回結果頁面?

/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(別墅-X具有多頁),他們是在「托斯卡納環境」。

現在我想製作一個按鈕「回到搜索結果」,然後回到最初的/listing頁面。我怎樣才能做到這一點? :back不是一個選項,因爲別墅有多個頁面。

回答

0

您可以使用此緩存。因爲緩存對象也可以在控制器和視圖中使用。

您應該從視圖中設置緩存對象中的URL,並將在該特定鏈接上從控制器重定向。