getActionPathFromString() — astro Function Reference
Architecture documentation for the getActionPathFromString() function in client.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD ab13a3a7_6aa5_35b8_f3a7_b7cff7d16511["getActionPathFromString()"] eb04bc4a_f415_2ce3_c34b_e7ef77fb812f["client.ts"] ab13a3a7_6aa5_35b8_f3a7_b7cff7d16511 -->|defined in| eb04bc4a_f415_2ce3_c34b_e7ef77fb812f e8c7eb5e_312b_160b_c5a9_911b3b98c20c["createGetActionPath()"] e8c7eb5e_312b_160b_c5a9_911b3b98c20c -->|calls| ab13a3a7_6aa5_35b8_f3a7_b7cff7d16511 style ab13a3a7_6aa5_35b8_f3a7_b7cff7d16511 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/actions/runtime/client.ts lines 209–223
export function getActionPathFromString({
baseUrl,
shouldAppendTrailingSlash,
path: input,
}: {
baseUrl: string;
shouldAppendTrailingSlash: boolean;
path: string;
}) {
let path = `${baseUrl.replace(/\/$/, '')}/_actions/${new URLSearchParams(input).get(ACTION_QUERY_PARAMS.actionName)}`;
if (shouldAppendTrailingSlash) {
path = appendForwardSlash(path);
}
return path;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getActionPathFromString() do?
getActionPathFromString() is a function in the astro codebase, defined in packages/astro/src/actions/runtime/client.ts.
Where is getActionPathFromString() defined?
getActionPathFromString() is defined in packages/astro/src/actions/runtime/client.ts at line 209.
What calls getActionPathFromString()?
getActionPathFromString() is called by 1 function(s): createGetActionPath.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free