RaythaHQ / raytha

Raytha is a powerful CMS with an easy-to-use interface and fast performance. It offers custom content types, a template engine, and various access controls. It supports multiple storage providers and an automatically generated REST API. Upgrade your development workflow with Raytha.
MIT License
155 stars 30 forks source link

Default template should make use of returnUrl parameter upon login #128

Closed apexdodge closed 1 year ago

apexdodge commented 1 year ago

The problem is that user's not being redirected to their destination upon login if returnUrl is specified as a URL parameter. You can fix this manually in your Raytha template, but we should fix the default template.

https://github.com/RaythaHQ/raytha/blob/bc96ab78f0f3db6a52ec380778dd5b25f03677ac/src/Raytha.Domain/Entities/DefaultTemplates/raytha_html_login_emailandpassword.liquid#L11

Line should be fixed to:

{{ PathBase }}/account/login?returnUrl={{ Target.ReturnUrl }}