aaliboyev56601
aaliboyev56601

HI! I have a secured page that requires registration for frontend users. I use Rainlab User plugin. And when Frontend user is logged in and goes to that secured page. It shows 404 error. When backend user also logs in that page works correctly. .

mjauvin
mjauvin

You'd need to show some code for that page if you want help...

aaliboyev56601
aaliboyev56601

Ok. The page that i have to register to see

title = "Create new issue"
url = "/create-issue"
layout = "dev"
is_hidden = 1

[session]
security = "user"
redirect = "user/sign"

[Issue]
slug = "{{ :slug }}"
postsPerPage = 20
==
{% component issue~'::create' %}

When a registered user opens this page, it works only when backend user also is logged in. When backend user logs out, this page showing 404 error

mjauvin
mjauvin

To isolate the problem, try removing the Issue component and just use static content for the page. If the problem doesn't show up, then Issue component is the problem.

aaliboyev56601
aaliboyev56601

I solved this issue!!!

The problem was with

is_hidden = 1

I turned this attribute off and works. But is this good? What actually this attribute do? Does it hide page as it did? And how backend user is related with this?

Last updated

mjauvin
mjauvin

Hidden pages are accessible only by logged-in back-end users.

{% if this.page.hidden %} <p>Note to other admins: We are currently working on this page.</p> {% endif %}

aaliboyev56601
aaliboyev56601

Thank you a lot!!!

1-7 of 7