Comments (8)
Maintainer of Cactus Comments here.
I was just made aware of this bug in matrix.to because a friend of mine has broken links on their blog because of it as well.
It seems to still be an issue.
from matrix.to.
this probably happens because the parser does split the fragment (except the common prefix) by /
(for the event id) before checking where the local part ends:
Line 114 in fde5309
from matrix.to.
this issue made me stop using https://cactus.chat/ in my static website and will instead use https://giscus.app/
from matrix.to.
We have likely the same issue:
If I "copy the room link" in Element Desktop (or Web too BTW), https://matrix.to/#/#aboutcode-org/fosdem-2024:gitter.im is the link copied
But this is a dead, invalid link. It should have been
https://app.gitter.im/#/room/#aboutcode-org/fosdem-2024:gitter.im
matrix.to does not redirect correctly rooms with a slash.
from matrix.to.
I am experiencing the same issue and I originally thought this was an Element problem. element-hq/element-desktop#1435 ... this makes life really difficult as the generated matrix.to links are useless and error out. So you cannot really share you room at all.
from matrix.to.
as @Zocker1999NET pointed out the split is the issue. Here is a simple excerpt:
function parseFragment(fragment) {
let [linkStr, queryParamsStr] = fragment.split("?");
linkStr = linkStr.slice(2);
const [identifier, eventId] = linkStr.split("/");
return {"identifier": identifier, "eventId": eventId};
}
parseFragment("/#aboutcode-org/vulnerablecode:gitter.im")
returns:
Object { identifier: "aboutcode-org", eventId: "vulnerablecode:gitter.im" }
But should have returned:
Object { identifier: "aboutcode-org/vulnerablecode:gitter.im", eventId: "" }
Also I could not find a tests for this function... are they in another repository may be? 😇
from matrix.to.
Neither unescaped (https://matrix.to/#/@it/sme:matrix.org) nor escaped (https://matrix.to/#/@it%2Fsme:matrix.org) links does not work.
from matrix.to.
Also the error message is misleading because the URL is actually valid
> new URL('https://matrix.to/#/@it/sme:matrix.org')
> URL {
hash: "#/@it/sme:matrix.org"
host: "matrix.to"
hostname: "matrix.to"
href: "https://matrix.to/#/@it/sme:matrix.org"
origin: "https://matrix.to/"
password: ""
pathname: "/"
port: ""
protocol: "https:"
search: ""
searchParams: URLSearchParams(0)
username: ""
}
from matrix.to.
Related Issues (20)
- Enable "ask every time" by default
- SSL Error HOT 13
- Embed links to third party identities with rel="me" for cross verification. HOT 1
- No obvious license for project
- Document `via` parameter better
- Make a pledge to only promote FOSS HOT 4
- package.json HOT 2
- repeated accounts HOT 1
- Invalid url for valid usernames HOT 1
- Adding a /.well-known/assetlinks.json file for android deeplink verification HOT 1
- Git hab HOT 1
- Deprecate matrix.to for FediLinks
- Already have an app section needs to be at the top HOT 3
- using (matrix.to) room links with element-web HOT 2
- matrix.to links broken HOT 1
- Add room via space url scheme
- Allow for user to specify specific instance of web client
- In person crime needs to be handled HOT 1
- Fractal supports matrix: URIs now HOT 1
- https://core.telegram.org/mtproto HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matrix.to.