Soundcloud embed doesn't work well when the link is shortened

Hi,

The Soundcloud embed doesn’t work well when the link is shortened. Here is an exemple (the first link is shortened by the mobile app):
https://soundcloud.app.goo.gl/BYRyb

https://soundcloud.com/marcel-moussu/ignition/s-UaYvJxfreEd

2 Likes

It does work, but it’s far less than ideal, as you can see above… :wink:

Is there a way to fix this issue? Is it something that should/could be fixed in discourse or is it perhaps at soundcloud?

A hack could be to add something like this in ones CSS.

// soundcloud onebox css fix

iframe[src^="https://w.soundcloud.com/player/"] {
  width: 100%;
  height: 166px;
}

Just noting that this affects a community I’m part of as well. We’re a bunch of musicians sharing songs, and the “easy” (shortened) links all look weird and wrong.

3 Likes