Project

General

Profile

0001-don-t-loop-redirect-on-category-name-formdef-name-28.patch

Frédéric Péters, 07 December 2018 06:46 PM

Download (989 Bytes)

View differences:

Subject: [PATCH] don't loop-redirect on category name = formdef name (#28768)

 auquotidien/modules/root.py | 2 ++
 1 file changed, 2 insertions(+)
auquotidien/modules/root.py
842 842
                if uri_rest.startswith(base_url):
843 843
                    uri_rest = uri_rest[len(base_url):]
844 844
                if f.category:
845
                    if f.category.url_name == f.url_name:
846
                        return FormsRootDirectory(f.category)._q_traverse(path[1:])
845 847
                    return redirect('%s%s/%s' % (base_url, f.category.url_name, uri_rest))
846 848

  
847 849
            raise e
848
-