Frage

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.

War es hilfreich?

Lösung

How about return Redirect::back()

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top