I’m having an issue when trying to make a password-protected page; it doesn’t take the user to the password-protected page on my site. It just directs the user to the 404 error page.
/.wf_auth
Here is my site Read-Only: Webflow - Snapthat
I’m having an issue when trying to make a password-protected page; it doesn’t take the user to the password-protected page on my site. It just directs the user to the 404 error page.
/.wf_auth
Here is my site Read-Only: Webflow - Snapthat
Do you mean only when the incorrect password is entered, or also when the correct password is entered?
This script worked for me. Not sure why the script is not showing. Added a screenshot.
Removed the space before script. Now it’s visible. Strange.
< script>
// Stop Webflow from redirecting to /.wf_auth when
// the submit button was clicked but no password was entered.
// This script marks the password field as required.
document.addEventListener(‘DOMContentLoaded’, () => {
const passInput = document.querySelector(‘input[type=“password”]’);
if (passInput) passInput.required = true;
});