Instead of hard-coded it, using url_for, a function provided by flask, to generate the URL.
url_for
merged
mentioned in commit 9fc55599