Merge pull request #45 from tulir/patch-2

Fix matrix-static URLs for aliases with hashtags
This commit is contained in:
Michael Telatynski 2018-08-29 20:54:42 +01:00 committed by GitHub
commit 5f4240a418
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ var linkable_clients = [
logo: "img/matrix-static-48px.png", logo: "img/matrix-static-48px.png",
author: "Michael Telatynski", author: "Michael Telatynski",
homepage: "https://github.com/t3chguy/matrix-static", homepage: "https://github.com/t3chguy/matrix-static",
room_url(alias) { return "https://view.matrix.org/alias/" + alias.replace('#', '%23') }, room_url(alias) { return "https://view.matrix.org/alias/" + alias.replace(/#/g, '%23') },
room_id_url(id) { return "https://view.matrix.org/room/" + id }, room_id_url(id) { return "https://view.matrix.org/room/" + id },
maturity: "Stable", maturity: "Stable",
comments: "A static golang generated preview of public world readable Matrix rooms.", comments: "A static golang generated preview of public world readable Matrix rooms.",