File.prototype.localPath()

Returns a file’s path relative to the website root.

Syntax

file.localPath() string

Description

Returns a file’s path excluding the domain.

Examples

LocalPath of a root file.

localPath of a non-root file.