APPEND_SLASH behavior

2021-04-29 Thread Tidiane Dia
Hello, I posted this on #django-users but I think here is the right place to post it. To give more context, this is the related issue on Wagtail which lead me here. In gener

Re: APPEND_SLASH behavior

2021-04-29 Thread Tidiane Dia
d change *your* catch-all view to do similar processing to > CommonMiddleware - check if appending a slash to the URL and resolving it > leads to a view (other than your catch-all view), and redirect. > > On Thu, 29 Apr 2021 at 08:13, Tidiane Dia wrote: > >> Hello, I posted this

Re: APPEND_SLASH behavior

2021-04-29 Thread Tidiane Dia
021 à 22:07:18 UTC+2, Tidiane Dia a écrit : > Yes I suggested doing that work at the middleware level, but it's not the > preferred solution due to maintanability concerns. > > However, you haven't mentionned the unneccesary check (I think) being done > in the Common

Re: APPEND_SLASH behavior

2021-05-05 Thread Tidiane Dia
Ok I see better. Talking about efficiency, I take this opportunity to link here the following draft PR I made: Backtracking URL Resolver and Provide ability to abort URL resolution early , which, if imple

Re: APPEND_SLASH behavior

2021-05-06 Thread Tidiane Dia
Hi, thanks for giving it a look. The PR are based on existing tickets so these are not my ideas. The relevant ticket for the backtracking URL contains valuable information about its benefits and why the author requested the feature. The idea is to