When I call url_for(\'index\') it will generate \'/\' but there are times where I\'d like it to generate \'domain.tld/\' instead. I ca
url_for(\'index\')
\'/\'
\'domain.tld/\'
url_for takes an _external keyword argument that will return an absolute (rather than relative) URL. I believe you will need to set a SERVER_NAME config key with your root domain to make it work correctly.
_external
SERVER_NAME