Why does my customer account login page refresh issue occur?

Why does my customer account login page refresh issue occur?

massimoce
Tourist
7 0 1

In my shopify store when i use login in customer account login page "account/login/", i can access correctly to customer account page and works good if i use the same page or if i go to homepage/account/ page. 

 

I've the issue when i try to go to login page again using browser search bar and typing account/login/, the account is not logged anymore.

 

How can i fix this?

Replies 3 (3)

JaviExpress
Shopify Partner
183 16 26

Hi

 

'/account/login' would be the route to the login page

 

the right route should be simply '/account'

 

could this be the issue, that you are redirecting to login instead of account page?

Customer Accounts Concierge
All-in-One Customer Portal: Profile, Orders, Loyalty, Referral, Wishlist, Custom Forms, Social Login
massimoce
Tourist
7 0 1

I'm creating a mobile app of my website and app needs to see state of login page to know if the account is logged in or not. So when i use login page the account logged in correctly but if i go to account page, app check status of login page and sees that is logged out

JaviExpress
Shopify Partner
183 16 26

Hi.

 

Can you use liquid? In theme liquid this is done with the conditional if customer, e.g.:

 

href="{%- if customer -%}{{ routes.account_url }}{%- else -%}{{ routes.account_login_url }}{%- endif -%}"

 

Customer Accounts Concierge
All-in-One Customer Portal: Profile, Orders, Loyalty, Referral, Wishlist, Custom Forms, Social Login