@anjabed : If you still need to have multiple # in your URL, try encoding the subsequent # as %23, so your URL becomes - https://link.html/seite#/content/123/%23TM4
With this, it will remain as a link. Please check if the link still does what you expect it to do.
thanks.