---
title: data-auth-success-url
slug: data-auth-success-url
docTags: 
createdAt: 2020-06-10T08:51:11.000Z
---

### Supported Types

- Constant

### Used By

- $pinc.auth
- $pinc.ui.auth

## What does it do?

The user is redirected to the page specified here post authentication. There is a constraint that the value should be relative to the host name.

&#x20;i.e. If login is at "https\:/example.com/login" and redirect page is at "https\://example.com/redirect-page" then the value in this attribute should be `data-auth-success-url="/redirect-page" `
