mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 02:26:21 +08:00
feat(core): support block links on Bi-Directional Links (#8169)
Clsoes [AF-1348](https://linear.app/affine-design/issue/AF-1348/修复-bi-directional-links-里面的链接地址) * Links to the current document should be ignored on `Backlinks` * Links to the current document should be ignored on `Outgoing links` https://github.com/user-attachments/assets/dbc43cea-5aca-4c6f-886a-356e3a91c1f1
This commit is contained in:
@@ -31,3 +31,13 @@ export function buildAppUrl(path: string, opts: AppUrlOptions = {}) {
|
||||
return new URL(path, webBase).toString();
|
||||
}
|
||||
}
|
||||
|
||||
export function toURLSearchParams(params?: Record<string, string | string[]>) {
|
||||
if (!params) return;
|
||||
return new URLSearchParams(
|
||||
Object.entries(params).map(([k, v]) => [
|
||||
k,
|
||||
Array.isArray(v) ? v.join(',') : v,
|
||||
])
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user