For example if I have https://stackoverflow.com/questions/ask I'd like to cut it to stackoverflow.com/questions/ask or if I have http://www.samsung.com/au/ I'd like to cut it to samsung.com/au/.
I want to make a template tag for this but not sure what to return:
def clean_url(url):
return ?
template
{{ url|clean_url }}
Any idea?