Use window.location.origin + window.location.pathname for all possible links (rss, telegram, comments body) if the unique identificator (url) is not URL.
Let me explain. I use unique identifiers that do not depend on sites URL (to display comments on the same pages on different sites) - in this case all links are broken (example: <a href="id68033986#remark42comment-f379ad44-72fb-3c69-a548-e0943b8f1afc" class="commenttime">), although this can be avoided.
Use window.location.origin + window.location.pathname for all possible links (rss, telegram, comments body) if the unique identificator (url) is not URL.
Let me explain. I use unique identifiers that do not depend on sites URL (to display comments on the same pages on different sites) - in this case all links are broken (example: <a href="id68033986#remark42comment-f379ad44-72fb-3c69-a548-e0943b8f1afc" class="commenttime">), although this can be avoided.