On Thursday, June 20, 2019 at 12:44:49 PM UTC-7, Vlad wrote:
>
> what's the most efficient way to redirect domain to another domain 
> entirely on a level of web2py?
>

That depends on which efficiency you are after.

Do you want the move to be in the browser history?  Then use the 
redirect(call).

If you don't need the move to be in the browser history, and want the 
fastest response,
call the other domain's functions from your current domain's app.
(You could probably still make back- and forwards- history work with 
javascript,
which I think some SPAs make use of.)

If you didn't need the current domain to do anything with the request, then 
the global (er, top-level) routes.py may be able to help.

/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/6d915a3e-9ade-40ca-abf5-0cb2f9a306af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to