get_path: Extract the path from a URL

View source: R/aaa.R

get_pathR Documentation

Extract the path from a URL

Description

This function is a simple helper that extract the path part of a URL. It is useful when constructing OAuth 2.0 derived authenticators for the redirect_path argument.

Usage

get_path(url, root = NULL)

Arguments

url

The url to extract the path from

root

An optional root to remove from the path as well

Value

The "path" part of the URL

Examples

get_path("https://example.com/auth")

get_path("https://example.com/api/auth", root = "/api")


fireproof documentation built on Dec. 17, 2025, 5:09 p.m.