Project

General

Profile

« Previous | Next » 

Revision 93e566d7

Added by Frédéric Péters over 5 years ago

don't loop-redirect on category name = formdef name (#28768)

View differences:

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

Also available in: Unified diff