Is there a way I can direct Guide users to sign in when they get the message "You're not authorized to access this page" | Community
Skip to main content

Is there a way I can direct Guide users to sign in when they get the message "You're not authorized to access this page"

  • May 11, 2023
  • 1 reply
  • 0 views

We have one article we keep behind sign-in. We are worried users will not sign - in, go to this bookmarked article, or reach it from a link, and see "You're not authorized to access this page". Is there a way to redirect them to the sign-in page if they access this link and they are not logged in? 

1 reply

Ifra
  • May 11, 2023

Hi Lindsey,

You can do like this -

Go to the error_page.hbs file > Find for 'forbidden' > Add the given line of code also I'm attaching the screenshot to make it easy.

<div id="guide-to-users">
<a href="#">This is my article which will help you</a>
</div>


Screenshot for the same:



Note:
Remove # from href and add your link and change the text as well which you want to write.

 

If I misunderstood your query, let me know.