Save workspace changes
This commit is contained in:
@@ -218,7 +218,9 @@ export default function SearchBar({ placeholder = 'Search artworks, groups, arti
|
||||
|
||||
// ── navigation helpers ───────────────────────────────────────────────────
|
||||
function navigate(item) {
|
||||
if (item.type === 'artwork') window.location.href = item.urls?.web ?? `/${item.slug ?? ''}`
|
||||
if (item.type === 'artwork') {
|
||||
window.location.href = item.urls?.direct ?? `/art/${item.id ?? ''}/${item.slug ?? ''}`
|
||||
}
|
||||
else if (item.type === 'group') window.location.href = item.urls?.public ?? item.profile_url ?? `/groups/${item.slug ?? ''}`
|
||||
else if (item.type === 'user') window.location.href = item.profile_url ?? `/@${item.username}`
|
||||
else window.location.href = `/tags/${item.slug ?? item.name}`
|
||||
|
||||
Reference in New Issue
Block a user