Parameter _external in url_for in Task.py

Instead of manually concatenating stuff, you can define it as external so it builds the proper url for you.