# Can't Login in Production Mode

**URL:** <https://forum.shopware.com/t/cant-login-in-production-mode/92650>\
**Category:** Programmierung\
**Tags:** general, programming\
**Created:** [28. Januar 2022 um 11:12 UTC](https://forum.shopware.com/t/cant-login-in-production-mode/92650 "2022-01-28T11:12:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arash.yazdani59](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/arash.yazdani59/32/13954_2.png) [@arash.yazdani59](https://forum.shopware.com/u/arash.yazdani59)\
**Post date:** [28. Januar 2022 um 11:12 UTC](https://forum.shopware.com/t/cant-login-in-production-mode/92650/1 "2022-01-28T11:12:38Z")

</div>

Hi,  
I’m using this code to prevent redirection in Shopware 6:

```auto
<input type="hidden"
                               name="redirectTo"
                               value="{{current_path}}">

                        <input type="hidden"
                               name="redirectParameters"
                               value='{"navigationId": "{{ page.navigationId }}"}'>

```

This Code Works just fine in dev mode but the Problem is as soon as i change the dev mode to prod Login not Working or i have to refresh the page to make this work.  
any idea?
