divan/GanjooRazor/Pages
Ehsan Mohandesi e7fbc6559d Fix 500 on failed login by encoding the redirect parameters
After a rejected login the site redirects back to /login carrying the API's
error message in the query string. That message is Persian, and HTTP header
values must be ASCII, so Kestrel threw InvalidOperationException and the user
got an error page instead of the login form with the reason for the failure.
Encode both the path and the message.

Not noticed before because IIS Express tolerates the non-ASCII Location header;
it surfaces as soon as the site is run on Kestrel.
2026-09-13 22:16:28 -05:00
..
Auth recitation icons fix 2026-09-12 12:23:36 +03:30
CommentReports recitation icons fix 2026-09-12 12:23:36 +03:30
errors recitation icons fix 2026-09-12 12:23:36 +03:30
ImageRecommendation recitation icons fix 2026-09-12 12:23:36 +03:30
Misc recitation icons fix 2026-09-12 12:23:36 +03:30
Partials recitation icons fix 2026-09-12 12:23:36 +03:30
Recitations recitation icons fix 2026-09-12 12:23:36 +03:30
Shared recitation icons fix 2026-09-12 12:23:36 +03:30
SongRecommendation recitation icons fix 2026-09-12 12:23:36 +03:30
_ViewImports.cshtml #112 GanjooRazor project added 2021-05-08 18:59:39 +04:30
_ViewStart.cshtml docs: #282 fix 2022-02-15 20:10:22 +03:30
Contribs.cshtml refactoring 2026-07-18 13:51:04 +03:30
Contribs.cshtml.cs caching improvements 2026-09-12 15:05:43 +03:30
Error.cshtml recitation icons fix 2026-09-12 12:23:36 +03:30
Error.cshtml.cs #112 copying all GanjooRazor source code 2021-05-08 20:13:14 +04:30
FAQ.cshtml refactoring 2026-07-18 13:51:04 +03:30
FAQ.cshtml.cs caching improvements 2026-09-12 15:05:43 +03:30
GanjoorPage.cshtml double click to open beyt partial control 2026-09-02 13:59:03 +03:30
GanjoorPage.cshtml.cs caching improvements 2026-09-12 15:05:43 +03:30
GanjoorPageModelBase.cs session expiration bug fix 2026-08-10 07:56:39 +03:30
Hashieha.cshtml refactoring 2026-07-18 13:51:04 +03:30
Hashieha.cshtml.cs caching improvements 2026-09-12 15:05:43 +03:30
Index.cshtml ui fix 2026-08-16 16:09:47 +03:30
Index.cshtml.cs caching improvements 2026-09-12 15:05:43 +03:30
LoginPartialEnabledPageModel.cs Fix 500 on failed login by encoding the redirect parameters 2026-09-13 22:16:28 -05:00
Map.cshtml recitation icons fix 2026-09-12 12:23:36 +03:30
Map.cshtml.cs tracker code update 2025-04-05 21:29:19 +03:30
Quotes.cshtml refactoring 2026-07-18 13:51:04 +03:30
Quotes.cshtml.cs caching improvements 2026-09-12 15:05:43 +03:30
random.cshtml refactoring 2026-07-16 16:45:01 +03:30
random.cshtml.cs refactoring 2026-07-16 16:45:01 +03:30
Search.cshtml refactoring 2026-07-18 13:51:04 +03:30
Search.cshtml.cs caching improvements 2026-09-12 15:05:43 +03:30
Simi.cshtml refactoring 2026-07-18 13:51:04 +03:30
Simi.cshtml.cs caching improvements 2026-09-12 15:05:43 +03:30