문제

I have the following URI:

http://localhost/testcart/products/cpa/1

where

cpa = URI::segment(2)
1 = URI::segment(3)

After post how do i redirect back to this URL.

I have tried

return Redirect::to('products/'.URI::segment(2).'/'.URI::segment(3))

return Redirect::to(URL::current())

None seems to be working.

도움이 되었습니까?

해결책

How about return Redirect::back()

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top