XF 2.2 redirect to page x

Robert9

Well-known member
I have a page like

http://localhost/items/?page=2

here i have items like threads or resources

here i have a link [edit]

i open an overlay and edit something

then i redirect to /items/

but I need to redirect to /items/?page=2


Do we have any example who this is done?

Should i edit with something like:

{{ link('item/itemedit', $item) }} and add somehow page=2


{{ link('item/itemedit', $item, 'page=$page') }}
 
Now I have:

Code:
{{ link('item/edit', $item, {'page' : $page} ) }}

to have something like

http://localhost/item/2707/edit?page=2


but $page is not in $params
there I have only item with item_id=2707


Do I need a new route for something like:

format="item/:int<item_id>/:int<page>"


Is there another way to bring $page into $params?
 
Back
Top Bottom