Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

201 B
Raw Blame
/** The path an auth page's `?next=` returns to, without its query or hash. */
export function nextPathOf(
  next: string | null | undefined,
): string | undefined {
  return next?.split(/[?#]/)[0];
}