Skip to content

Commit 6cb128a

Browse files
authored
fix(richtext-lexical): linkFeature doesn't respect admin.routes from payload.config.ts (#8513)
Fix #8452
1 parent bb3496d commit 6cb128a

File tree

1 file changed

+1
-1
lines changed
  • packages/richtext-lexical/src/features/link/client/plugins/floatingLinkEditor/LinkEditor

1 file changed

+1
-1
lines changed

packages/richtext-lexical/src/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function LinkEditor({ anchorElem }: { anchorElem: HTMLElement }): React.R
124124
} else {
125125
// internal link
126126
setLinkUrl(
127-
`/admin/collections/${focusLinkParent.getFields()?.doc?.relationTo}/${
127+
`${config.routes.admin === '/' ? '' : config.routes.admin}/collections/${focusLinkParent.getFields()?.doc?.relationTo}/${
128128
focusLinkParent.getFields()?.doc?.value
129129
}`,
130130
)

0 commit comments

Comments
 (0)