def METHOD_NAME(request, view_type, username, short_id):
    shortlinks = getShortLinks(username)
    if short_id in shortlinks['i']:
        task_id = shortlinks['i'][short_id]
        if view_type == 'm':
            v = 'map'
        elif view_type == '3':
            v = '3d'
        return redirect('/public/task/{}/{}/'.format(task_id, v))
    else:
        raise Http404()