redirect

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
utony
Veteran Member
Posts: 93
Joined: 2020-04-03 18:37

redirect

Post by utony » 2022-11-23 12:11

looking for help on the redirect. Right now my user has to click the back button after clicking save, I would like the record to take them right back to the TV. Suggestions, code help, placement would be much appreciated.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: redirect

Post by jsetzer » 2022-11-23 12:33

What about redirecting in TABLENAME_after_update-hook?

(replace 'TABLENAME')

Code: Select all

function TABLENAME_after_update($data, $memberInfo, &$args)
{
    redirect("https://appgini.bizzworxx.de/blog", true);
}
Result
ezgif.com-gif-maker.gif
ezgif.com-gif-maker.gif (105.68 KiB) Viewed 1496 times
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

utony
Veteran Member
Posts: 93
Joined: 2020-04-03 18:37

Re: redirect

Post by utony » 2022-11-23 13:57

geniuses thanks JS!!!!!!!!!!!!!!!!

jfehr
Posts: 11
Joined: 2022-01-25 17:03

Re: redirect

Post by jfehr » 2023-03-21 00:50

That is exactly what I was looking for. Thank you.

Post Reply