Commit c20ff96d authored by Pierre Nardozi's avatar Pierre Nardozi Committed by Vincent A

[amazon] goes back to the subscription page in case we are redirected

we can be redirected to the documents page after the login procedure, so
we go back to the subscription page
parent b148d2c6
......@@ -226,6 +226,10 @@ class AmazonBrowser(LoginBrowser, StatesMixin):
elif not self.subscriptions.is_here():
self.is_login()
# goes back to the subscription page as you may be redirected to the documents page
if not self.subscriptions.is_here():
self.location(self.panel.go().get_sub_link())
yield self.page.get_item()
@need_login
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment