Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect Customer to Account Dashboard after Logging in setting #35

Closed
cowmix88 opened this issue Jan 16, 2017 · 4 comments
Closed

Redirect Customer to Account Dashboard after Logging in setting #35

cowmix88 opened this issue Jan 16, 2017 · 4 comments
Assignees
Milestone

Comments

@cowmix88
Copy link

cowmix88 commented Jan 16, 2017

You can set this value to No in Configuration > Customers > Customer Configuration > Login Options
and the expected result is that after login the user should be returned to the original page they were on, but with this plugin enabled it seems to always send them to the My Account page after login.

@der-workfloh
Copy link
Contributor

der-workfloh commented Jan 17, 2017

Hi @cowmix88 ,

thank you for the information. We need to think about how to include this configuration setting.

For the moment, the redirect target url ist fixed to customer/account/login and not respecting any other configuration. @carlowens has provided a pull request to redefine the target url by the administration area (#29).

We are finalizing the feature to setup more then one target url in relation to different store, storeviews and websites. So for the moment, you could use the provided pull request or you should be able to override the DI configuration with the following statement in your di.xml:

<type name="\bitExpert\ForceCustomerLogin\Controller\LoginCheck">
        <arguments>
            <argument name="targetUrl" xsi:type="string">CUSTOM/TARGET/URL</argument>
        </arguments>
</type>

@mekakkar
Copy link

Hi Team,

I am aslo facing the same issue. everytime the i am redirected to same page. I tried changing the cache from Varnish to default but issue still persist. I am on Magnto 2.1 CE

@der-workfloh
Copy link
Contributor

Hi @mekakkar ,

have you tried to override the DI as a workaround for the moment?

@mekakkar
Copy link

Hi @websharp

I tried installing this extension in 3 different setup of Magento 2 on windows environment. I am not sure of the reason but it started working properly after sometime, Now i am facing the issue in only 1 setup. Ill try to override and revert back in couple of days. Thanks

@der-workfloh der-workfloh self-assigned this Mar 15, 2017
@der-workfloh der-workfloh added this to the 2.0.0 milestone Mar 15, 2017
der-workfloh pushed a commit to der-workfloh/magento2-force-login that referenced this issue Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants