Options
All
  • Public
  • Public/Protected
  • All
Menu

Module client/normalize-trailing-slash

Index

Functions

Const normalizePathTrailingSlash

  • normalizePathTrailingSlash(path: string): string
  • Normalizes the trailing slash of a path according to the trailingSlash option in next.config.js.

    Parameters

    • path: string

    Returns string

removePathTrailingSlash

  • removePathTrailingSlash(path: string): string
  • Removes the trailing slash of a path if there is one. Preserves the root path /.

    Parameters

    • path: string

    Returns string

Generated using TypeDoc