> ## Documentation Index
> Fetch the complete documentation index at: https://stars-components.js.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Function: getRedditRedirectPostUrl()

> **getRedditRedirectPostUrl**(`path`): `Promise`\<`string` | `null`>

Defined in: [packages/reddit-helpers/src/lib/reddit.ts:50](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/reddit-helpers/src/lib/reddit.ts#L50)

Gets the proper URL of a reddit post in case an URL was provided that redirects to a post.
This happens when the shortlink is provided from the official Reddit app.

## Parameters

### path

`string`

The shortlink path to get the redirect for.

## Returns

`Promise`\<`string` | `null`>

The proper URL of the post from `headers.get('Location')`
