I'm trying to work around some issues supporting this on a hotwire native iOS app.
Normally my app redirects to "/" after login but this behavior is not good for a tabbed Hotwire native app where it should (ideally) redirect to the tab page path after login..
I'm trying to set login_redirect "/m/profile" in app/misc/rodauth_main.rb conditionally if the user agent is a mobile one... To do this i need to access the "request" object to parse out the user agent and determine if its mobile or not. whats the best way to do this?
I'm trying to work around some issues supporting this on a hotwire native iOS app.
Normally my app redirects to "/" after login but this behavior is not good for a tabbed Hotwire native app where it should (ideally) redirect to the tab page path after login..
I'm trying to set
login_redirect "/m/profile"
in app/misc/rodauth_main.rb conditionally if the user agent is a mobile one... To do this i need to access the "request" object to parse out the user agent and determine if its mobile or not. whats the best way to do this?