Akhil Narang
84ef6ec677
refactor: fixup with ruff 0.8.1
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-04 13:18:04 +05:30
Akhil Narang
1d46f03dae
fix: check that query_string isn't null before trying to use it
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-07-24 12:46:25 +05:30
Akhil Narang
40346305a7
fix(resolver): handle werkzeug redirect exception
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-04-22 16:44:28 +05:30
Ankush Menat
d9d29430a9
fix: validate homepage paths
2024-03-13 21:00:51 +05:30
Akhil Narang
3f1e19de85
refactor(treewide): enable RUF rules
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-21 16:20:28 +05:30
Ankush Menat
de9ac89748
style: re-format with ruff
2024-02-05 18:53:33 +05:30
Suraj Shetty
529d0aa5a7
Merge pull request #24018 from surajshetty3416/hook-to-add-custom-route-resolver
2023-12-29 06:53:18 +05:30
Suraj Shetty
a51a150376
feat: Hook to add custom route resolver
2023-12-29 06:33:59 +05:30
Akhil Narang
ff4dca3e16
fix(redirect): make the status codes a select field instead of int
...
Drop mandatory, assume sane defaults
The current implementation broke old users of redirects like helpdesk app
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-22 12:25:41 +05:30
Ankush Menat
36451b6951
Merge pull request #23765 from akhilnarang/http-307-redirect
...
feat: allow setting a custom http status code for redirects
2023-12-21 13:53:51 +05:30
Akhil Narang
2224d86c94
refactor: cache status code as well
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-20 17:47:16 +05:30
Akhil Narang
44667901bf
feat: allow setting a custom http status code for redirects
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-20 17:36:42 +05:30
Hussain Nagaria
8d2137c265
docs: consistent doc strings
2023-12-18 18:27:39 +05:30
Ankush Menat
8779be9b49
fix: propogate correct HTTP status code ( #22450 )
2023-09-18 10:30:12 +00:00
Corentin Flr
23846434ee
fix(path_resolver): Avoid 200 OK for NotFoundPage renderer
2023-06-16 14:39:03 +02:00
Ankush Menat
fa6dc03cc8
refactor: frappe.cache() usage to frappe.cache ( #21282 )
2023-06-08 11:47:17 +05:30
Rushabh Mehta
2a50d6c593
fix(ux): add better home for blog category, cleanup forms
2022-10-18 17:28:47 +05:30
Rushabh Mehta
ac263d02ae
fix(minor): skip broken redirect
2022-10-17 18:54:41 +05:30
Ankush Menat
48869d506f
perf: dont order by for uniq searches
2022-08-21 17:37:40 +05:30
Ankush Menat
786df3fbeb
perf: ~33% faster Desk response
...
- hardcode `/app` resolution
- use cached website settings everywhere. It was mixing cache and DB
everywhere and re-quering same thing (why ?)
2022-08-21 17:35:07 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black ( #16453 )
...
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Suraj Shetty
44536fac49
fix: Prioritse TemplatePage over ListPage
2021-06-28 15:53:34 +05:30
Suraj Shetty
5531bc1e88
fix: Prioritize document page over template page
2021-06-24 11:35:53 +05:30
Suraj Shetty
879ecaacab
fix: Custom page renderer logic
2021-06-03 10:40:36 +05:30
Suraj Shetty
a42fc3c5df
feat: Option to add custom renderers
2021-05-31 14:56:09 +05:30
Suraj Shetty
8317e00712
refactor: Rename page_controllers folder to page_renderers
2021-05-25 09:27:26 +05:30
Suraj Shetty
70a8bd5945
refactor: Rename validate function to can_render
2021-05-25 08:21:06 +05:30
Suraj Shetty
862b5320b6
refactor: Move code to appropriate files
...
- Delete unused resolve_route method
- move resolve_path & resolve_redirect to path_resolver
- Remove redirect.py
2021-05-20 01:29:02 +05:30
Suraj Shetty
c26c5d9ef0
feat: Add is_valid_path method to PathResolver
2021-05-19 19:04:16 +05:30
Suraj Shetty
1be1c25e58
fix: 404 caching
...
- Move 404 resolving code to path resolver
2021-05-19 04:46:19 +05:30
Suraj Shetty
0c575f02ea
fix: Handle encoding issue and some edge cases
2021-05-18 11:43:42 +05:30
Suraj Shetty
c8d588819f
refactor: Move get_sidebar_data method to utils
...
- Also, rename get_sidebar_data to get_sidebar_items & delete context.py
- Remove commented text
2021-05-18 09:05:02 +05:30
Suraj Shetty
a02e5f766a
refactor: Add path_resolver to separate route resolving part
2021-05-18 08:43:49 +05:30