setRedirectOrder

Beta
Beta

setRedirectOrder

setRedirectOrder

Sets the order of the Redirects in the list

await framer.setRedirectOrder([aboutPageRedirect.id, blogPageRedirect.id]);

Parameters

  • redirectIds: string[] – An array of Redirect IDs representing the desired order.

Returns

  • Promise<void>

Errors

  • When the current user does not have permission to edit Site Settings, a FramerPluginPermissionError is thrown. Note: This is pending implementation and will be enabled after the Permission API PR is merged.

  • When the current Project is not on a Plan that includes Redirects, a FramerPluginLimitError with the code upsell is thrown. Also Framer will show a modal that asks the user to upgrade it's Plan.

Caveats

  • Unknown Redirect IDs are ignored.