dub icon indicating copy to clipboard operation
dub copied to clipboard

Favicon defaulting to dub.co favicon in Slack

Open nibzard opened this issue 2 years ago • 4 comments

When sharing short links in Slack, favicon defaults to dub.co favicon like in the screenshot: image

Slack doesn't respect the page's icon head tags and takes the /favicon.ico of the root domain.

Defaulting back to the workspace's logo could be a solution.

nibzard avatar Mar 26 '24 14:03 nibzard

@nkkko Wouldn't this be considered a slack issue with slack grabbing icons off the domain directly instead of following through the redirect to the end route?

versecafe avatar Mar 31 '24 23:03 versecafe

@versecafe yeah that was my first impression as well! we could potentially polyfill this somehow, but would need to dig deeper into it

steven-tey avatar Jun 06 '24 14:06 steven-tey

@steven-tey I don't know if NextJS has a great way to swap the favicon programmatically BUT using a middleware layer with NextResponse.rewrite does work for favicon rewrites, I don't know how you'd want to handle icon.* vs favicon.ico vs custom naming conventions, you could always quick parse the tags of the end site but that takes a lot of time so I'm not sure how good of a solution it is but it does work

versecafe avatar Jun 07 '24 17:06 versecafe