<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`getLinkpath`](getLinkpath) ## getLinkpath() function Converts the linktext to a linkpath. **Signature:** ```typescript export function getLinkpath(linktext: string): string; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>linktext</code> | <code>string</code> | A wikilink without the leading \[\[ and trailing \]\] | **Returns:** `string` the name of the file that is being linked to.