def get(self, request, **kwargs):
        """ HTML get for /<url_alias>
        :param request: the request object
        :param kwargs: contains url_alias
        :return: response object
        """
        if kwargs['url_alias'][-1] == '/':
            alias = kwargs['url_alias'][:-1]
            if alias == '/':
                return redirect('ninecms:index', permanent=True)  # pragma: no cover
            try:
                node = self.get_node_by_alias(alias, request)
            except __HOLE__:
                raise Http404
            if not node.status and not request.user.has_perm('ninecms.view_unpublished'):
                raise PermissionDenied
            if node.redirect:
                return redirect(node.get_redirect_path(), permanent=True)
            return self.render(node, request)
        else:
            return redirect('ninecms:alias', url_alias=(kwargs['url_alias'] + '/'), permanent=True)
dataset/ETHPy150Open Wtower/django-ninecms/ninecms/views.py/AliasView.get