Favicon defaulting to dub.co favicon in Slack
When sharing short links in Slack, favicon defaults to dub.co favicon like in the screenshot:
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.
@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 yeah that was my first impression as well! we could potentially polyfill this somehow, but would need to dig deeper into it
@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