# fix\(gitlab\): accept only merge request URLs the path parser can read · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/c52430b51673d79baf739fa3bddc787934192632)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: c52430b51673d79baf739fa3bddc787934192632

Requested commit: c52430b51673d79baf739fa3bddc787934192632

Commit: c52430b51673d79baf739fa3bddc787934192632

Tree: f460bd6be7fea90a19d54530ac0b9e410ff59c29

Author: Victor Vogel

Committer: Victor Vogel

## Message

```
fix(gitlab): accept only merge request URLs the path parser can read

The reference check let `?` and `#` into the host and allowed one-segment
or empty-segment repositories, so URLs like https://gitlab.com?x=/g/p/-/merge_requests/5
and https://gitlab.com/t3code/-/merge_requests/12 passed it while
CHANGE_REQUEST_PATH returned null. The host now stops at `/?#`, and the
repository needs at least two non-empty segments, matching the parser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [6e9591ea8215fd50bfa2199bc660cd460f93a0e2](https://git.cafe/pingdotgg/t3code/commit/6e9591ea8215fd50bfa2199bc660cd460f93a0e2?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/c52430b51673d79baf739fa3bddc787934192632?format=markdown)
