You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sdementen Sorry, I don't understand exactly what you are asking. Please try to explain better and provide me an information how to replicate the issue.
and add in the settings.py use as login URL an external page that would simulate a login page (i.e. do not use the modal login view you propose). LOGIN_URL = "https://myaccount.google.com/"
As you are not logged in the website per default, any call to create_book will redirect to the login page (which is not BSModal compatible).
Hence, if you click on "Create book", you will see
and the modal form will not appear (nor an error message).
as there is a redirect due to login that do not accept "xhr" (and that cannot go in the Modal form anyway).
In my case, I have all the pages that are behind login_required so I do not have the problem except when the session expires. Then, the next call will be redirected to the login page. And if the next call is the one of BSModal, I have the problem described here above.
I am not sure of the kind of solution that could be used... :
if a redirect is detected when calling a modal form => redirect the full page ?
if an error happens when calling a modal form => display a customised error message ?
I have a case where my session expire after a modal form is active.
When I click on the action button, it calls the URL and it triggers the redirects to login and there it fails,
If I log directly on the page from the browser I see
My uneducated guess it that the request is done in xhr/ajax vs plain call.
Would you know how to fix this ?
The text was updated successfully, but these errors were encountered: