Welcome to the Liquify Community

Updated yesterday

Display a page different than password page while website is locked

Hi, my client would like the coming soon page that I have build on the /password page to be shown on the homepage /
Is that possible?
j
K
23 comments
@Kevin you could try using a javascript which checks if a user is logged in or not and has a specific tag. And if the user has not it will be redirected to the home page:
{% unless customer.tags contains 'admin' %} <script> window.location.href = "/"; </script> {% endunless %}
The homepage automatically redirects to /password
you then need to turn off the password protection
Can I have password protection for all other pages but the homepage?
Sadly no. Passwort protection will always be for the entire store.
The only way it would work, is via a custom js based on the logged in users tags. Like in the example.
Idk why but my client hates the /password
Biggest problem in the world
Could I change that url to /xyz maybe theyre statisfied with that
Yeah I thought so
Thanks I'll check!
I think I found a solution. I added this to /password page


<script>
document.addEventListener("DOMContentLoaded", function() {
// Change the URL in the address bar without reloading the page
history.pushState({}, "", "/");
});
</script>
also good πŸ˜„
Works well!
Only thing it now ruins my succes message logic hahaha
@jonas.halbstark I keep getting a captcha even though my spam protection is off
Attachment
image.png
Maybe i've tried too many times?
on my side it works without captcha.
Thanks for checking!
Add a reply
Sign up and join the conversation on Discord
\n{% endunless %}","upvoteCount":0,"dateCreated":"2025-02-19T10:42:10.638Z","datePublished":"2025-02-19T10:42:10.638Z","dateModified":"2025-02-19T10:42:10.638Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#9cc752ad-53d5-4ea0-9207-afdf8329f4e0","author":{"@type":"Person","url":"https://liquify.hall.community/members/9198b265-c813-4ed7-89ba-4025d177dc62","name":"jonas.halbstark","identifier":"9198b265-c813-4ed7-89ba-4025d177dc62","image":"https://cdn.discordapp.com/avatars/947621552478904320/9741d807d28f33e26a3a3b01c121c60f.webp?size=256"}},{"@type":"Answer","text":"The homepage automatically redirects to /password","upvoteCount":0,"dateCreated":"2025-02-19T13:35:59.733Z","datePublished":"2025-02-19T13:35:59.733Z","dateModified":"2025-02-19T13:35:59.733Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#4dff20fe-d76a-4b29-b5a7-85140d5a13fd","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"you then need to turn off the password protection","upvoteCount":0,"dateCreated":"2025-02-19T13:36:20.643Z","datePublished":"2025-02-19T13:36:20.643Z","dateModified":"2025-02-19T13:36:20.643Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#2a135310-00c2-4ec0-a886-f07624cca2b3","author":{"@type":"Person","url":"https://liquify.hall.community/members/9198b265-c813-4ed7-89ba-4025d177dc62","name":"jonas.halbstark","identifier":"9198b265-c813-4ed7-89ba-4025d177dc62","image":"https://cdn.discordapp.com/avatars/947621552478904320/9741d807d28f33e26a3a3b01c121c60f.webp?size=256"}},{"@type":"Answer","text":"Can I have password protection for all other pages but the homepage?","upvoteCount":0,"dateCreated":"2025-02-19T13:38:06.197Z","datePublished":"2025-02-19T13:38:06.197Z","dateModified":"2025-02-19T13:38:06.197Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#54c9bb98-ab03-46f6-9893-51824771cc03","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"Sadly no. Passwort protection will always be for the entire store. The only way it would work, is via a custom js based on the logged in users tags. Like in the example.","upvoteCount":0,"dateCreated":"2025-02-19T13:39:40.329Z","datePublished":"2025-02-19T13:39:40.329Z","dateModified":"2025-02-19T13:39:40.329Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#2ff9ef6e-e130-48a3-855c-48bad7ec0f25","author":{"@type":"Person","url":"https://liquify.hall.community/members/9198b265-c813-4ed7-89ba-4025d177dc62","name":"jonas.halbstark","identifier":"9198b265-c813-4ed7-89ba-4025d177dc62","image":"https://cdn.discordapp.com/avatars/947621552478904320/9741d807d28f33e26a3a3b01c121c60f.webp?size=256"}},{"@type":"Answer","text":"Oh god","upvoteCount":0,"dateCreated":"2025-02-19T13:40:42.633Z","datePublished":"2025-02-19T13:40:42.633Z","dateModified":"2025-02-19T13:40:42.633Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#ee63ab1b-9835-483c-9b01-159f91275fbc","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"Idk why but my client hates the /password","upvoteCount":0,"dateCreated":"2025-02-19T13:40:56.285Z","datePublished":"2025-02-19T13:40:56.285Z","dateModified":"2025-02-19T13:40:56.285Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#ef48b608-aba3-43c9-9ad5-c47a6b6b3a7d","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"Biggest problem in the world","upvoteCount":0,"dateCreated":"2025-02-19T13:41:04.646Z","datePublished":"2025-02-19T13:41:04.646Z","dateModified":"2025-02-19T13:41:04.646Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#66ccc77b-49f8-4189-901e-b5610315f8ae","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"Could I change that url to /xyz maybe theyre statisfied with that","upvoteCount":0,"dateCreated":"2025-02-19T13:41:41.123Z","datePublished":"2025-02-19T13:41:41.123Z","dateModified":"2025-02-19T13:41:41.123Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#c4b8b36a-2773-4d3e-9a44-a79accb00213","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"maybe an app could work like locksmith: https://apps.shopify.com/locksmith?locale=de&search_id=eb3378d5-8ea9-4a59-ab94-5e7c204ab4b1&surface_detail=passwort&surface_inter_position=1&surface_intra_position=12&surface_type=search","upvoteCount":0,"dateCreated":"2025-02-19T13:41:50.456Z","datePublished":"2025-02-19T13:41:50.456Z","dateModified":"2025-02-19T13:41:51.341Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#48c00154-0e9a-4bd9-9401-269d2800bcb4","author":{"@type":"Person","url":"https://liquify.hall.community/members/9198b265-c813-4ed7-89ba-4025d177dc62","name":"jonas.halbstark","identifier":"9198b265-c813-4ed7-89ba-4025d177dc62","image":"https://cdn.discordapp.com/avatars/947621552478904320/9741d807d28f33e26a3a3b01c121c60f.webp?size=256"}},{"@type":"Answer","text":"also no 😦","upvoteCount":0,"dateCreated":"2025-02-19T13:42:01.293Z","datePublished":"2025-02-19T13:42:01.293Z","dateModified":"2025-02-19T13:42:01.293Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#87faf02f-c75d-4a87-90cb-ac60a17ec3ca","author":{"@type":"Person","url":"https://liquify.hall.community/members/9198b265-c813-4ed7-89ba-4025d177dc62","name":"jonas.halbstark","identifier":"9198b265-c813-4ed7-89ba-4025d177dc62","image":"https://cdn.discordapp.com/avatars/947621552478904320/9741d807d28f33e26a3a3b01c121c60f.webp?size=256"}},{"@type":"Answer","text":"Yeah I thought so","upvoteCount":0,"dateCreated":"2025-02-19T13:42:14.582Z","datePublished":"2025-02-19T13:42:14.582Z","dateModified":"2025-02-19T13:42:14.582Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#c2ec7131-9cb4-4287-84de-a5c9fbf68846","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"Thanks I'll check!","upvoteCount":0,"dateCreated":"2025-02-19T13:42:21.787Z","datePublished":"2025-02-19T13:42:21.787Z","dateModified":"2025-02-19T13:42:21.787Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#742306bd-72c5-40c5-9f96-93fe7e7b8c9c","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"I think I found a solution. I added this to /password page","upvoteCount":0,"dateCreated":"2025-02-19T13:56:16.143Z","datePublished":"2025-02-19T13:56:16.143Z","dateModified":"2025-02-19T13:56:16.143Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#53aa90ed-f57d-471a-99d1-5f0150b9bd29","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"also good πŸ˜„","upvoteCount":0,"dateCreated":"2025-02-19T13:56:47.308Z","datePublished":"2025-02-19T13:56:47.308Z","dateModified":"2025-02-19T13:56:47.308Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#cd472bc2-d59a-4948-b006-9e4ca8875659","author":{"@type":"Person","url":"https://liquify.hall.community/members/9198b265-c813-4ed7-89ba-4025d177dc62","name":"jonas.halbstark","identifier":"9198b265-c813-4ed7-89ba-4025d177dc62","image":"https://cdn.discordapp.com/avatars/947621552478904320/9741d807d28f33e26a3a3b01c121c60f.webp?size=256"}},{"@type":"Answer","text":"https://fourtimesone.com/","upvoteCount":0,"dateCreated":"2025-02-19T13:57:08.592Z","datePublished":"2025-02-19T13:57:08.592Z","dateModified":"2025-02-19T13:57:08.592Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#ef7a1d86-171c-460d-b707-1a8e8d4ec7df","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"Works well!","upvoteCount":0,"dateCreated":"2025-02-19T13:57:11.256Z","datePublished":"2025-02-19T13:57:11.256Z","dateModified":"2025-02-19T13:57:11.256Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#d397ffef-911d-4b73-ace9-e5471d7bd6a0","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"Only thing it now ruins my succes message logic hahaha","upvoteCount":0,"dateCreated":"2025-02-19T14:06:24.548Z","datePublished":"2025-02-19T14:06:24.548Z","dateModified":"2025-02-19T14:06:24.548Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#faf15773-41f2-455a-abc0-fb80cff36f93","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"@jonas.halbstark I keep getting a captcha even though my spam protection is off","upvoteCount":0,"dateCreated":"2025-02-19T14:25:33.635Z","datePublished":"2025-02-19T14:25:33.635Z","dateModified":"2025-02-19T14:25:33.635Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#0252dff1-6efd-431d-82cc-ecc3a44469d4","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"https://www.fourtimesone.com/","upvoteCount":0,"dateCreated":"2025-02-19T14:26:15.733Z","datePublished":"2025-02-19T14:26:15.733Z","dateModified":"2025-02-19T14:26:15.733Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#1b49f300-0817-43f8-ab38-57ffd99d835a","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"Maybe i've tried too many times?","upvoteCount":0,"dateCreated":"2025-02-19T14:26:22.086Z","datePublished":"2025-02-19T14:26:22.086Z","dateModified":"2025-02-19T14:26:22.086Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#6af2f75e-5c05-4f9e-8952-1a6f828d2593","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}},{"@type":"Answer","text":"on my side it works without captcha.","upvoteCount":0,"dateCreated":"2025-02-19T20:41:00.964Z","datePublished":"2025-02-19T20:41:00.964Z","dateModified":"2025-02-19T20:41:00.964Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#af22756f-618d-44c4-997e-eb14bd1c9202","author":{"@type":"Person","url":"https://liquify.hall.community/members/9198b265-c813-4ed7-89ba-4025d177dc62","name":"jonas.halbstark","identifier":"9198b265-c813-4ed7-89ba-4025d177dc62","image":"https://cdn.discordapp.com/avatars/947621552478904320/9741d807d28f33e26a3a3b01c121c60f.webp?size=256"}},{"@type":"Answer","text":"Thanks for checking!","upvoteCount":0,"dateCreated":"2025-02-20T13:37:46.100Z","datePublished":"2025-02-20T13:37:46.100Z","dateModified":"2025-02-20T13:37:46.100Z","url":"https://liquify.hall.community/display-a-page-different-than-password-page-while-website-is-locked-XyxsjQ3gxCQg#1c781a84-85dc-443e-ab10-723766798168","author":{"@type":"Person","url":"https://liquify.hall.community/members/8b700aad-8ac4-432d-9401-5c44abf19015","name":"Kevin","identifier":"8b700aad-8ac4-432d-9401-5c44abf19015","image":"https://cdn.discordapp.com/avatars/1006974650649170020/ef75e3f8749ca2d66d80839a141c01da.webp?size=256"}}]}}