Auth0 Home Blog Docs

Custom error page, liquid syntax variables?

error-page

#1

Hello,

I’m using the “render a custom error page” as described: https://auth0.com/docs/hosted-pages/custom-error-pages#render-a-custom-error-page. I know that I can get the error and error details by using the liquid syntax {{error}} and {{error_description}}.

Is it possible to render the other fields via Liquid such as the logo url, support email, support url? I have different tenants and it would be nice not to have to hardcode for each one.

Thank you.


#3

Hey there @thilina !

It should be possible to render fields like logo url and support url. As you’ve mentioned you can use it for error and error details but also for a few more things. You can find them here:

Let me know if that’s what you’re looking for!


#4

Hi there,

That page doesn’t list out what the liquid variable names are. It would be great if that page was updated with the actual liquid variable names. For example something like:

In addition to these fields, the error page returns the follow information to assist you in troubleshooting the error:

  • Error : the code corresponding to the error that occurred; Liquid tag: {{error}}
  • Error Description : a description of the error that occurred; Liquid tag: {{error_description}}

#5

Hey @thilina ,

Totally understand your point of view. We’re sorry for that. Already reported that to our docs team. If you come across such thing in the future please report it via: https://auth0.com/feedback so that we can make our stack and content around it better for you!


#6

Hi @konrad.sopala,

Thanks for adding it to the doc team’s backlog. I’ll post to feedback next time.


#7

@thilina here’s the list of variables you can use for rendering custom error pages using liquid syntax:

  • client_id
  • connection
  • lang
  • error
  • error_description
  • tracking
  • log_url