Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizable URL template #147

Open
simonsmh opened this issue Dec 26, 2024 · 2 comments
Open

Customizable URL template #147

simonsmh opened this issue Dec 26, 2024 · 2 comments

Comments

@simonsmh
Copy link

simonsmh commented Dec 26, 2024

The official gitlab have a short dash link in the middle of the project name and the file path like this /-/:
https://gitlab.com/<user>/<project>/-/blob/<branch>/<filepath>/filename
But the self hosted GitLab doesn't have this behavior like this.
https://<self.gitlab.endpoint>/<user>/<project>/blob/<branch>/<filepath>/filename
How to disable this behavior?

https://github.com/sourcegraph/zoekt/blob/dc1b23bb0da9a0fa91056ad6d5fcf9b8e641f67d/gitindex/index.go#L146-L151

It would be nice if users can customize the git index URL templates.

@simonsmh
Copy link
Author

Here's the affected links for reference.
CleanShot 2024-12-26 at 20 03 12
CleanShot 2024-12-26 at 20 03 52

@simonsmh

This comment was marked as duplicate.

@simonsmh simonsmh closed this as not planned Won't fix, can't repro, duplicate, stale Dec 26, 2024
@simonsmh simonsmh changed the title Invalid shortcut link to self hosted GitLab links Customizable URL template Dec 26, 2024
@simonsmh simonsmh reopened this Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant