Skip to content

Commit ed21810

Browse files
authored
Merge branch 'main' into typos-path
2 parents d6ddd08 + 8060ade commit ed21810

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Fixed
11+
- Fixed issue with external source code links being broken for paths with spaces. [#364](https://github.com/sourcebot-dev/sourcebot/pull/364)
12+
813
## [4.5.0] - 2025-06-21
914

1015
### Added

docs/docs/deployment-guide.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Watch this 1:51 minute video to get a quick overview of how to deploy Sourcebot
3838
echo '{
3939
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
4040
"connections": {
41-
//
41+
// comments are supported
4242
"starter-connection": {
4343
"type": "github",
4444
"repos": [

docs/docs/features/search/multi-branch-indexing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ By default, only the default branch of a repository is indexed and can be search
1515
Multi-branch indexing is currently limited to 64 branches and tags. If this limitation impacts your use-case, please [open a discussion](https://github.com/sourcebot-dev/sourcebot/discussions/categories/support).
1616
</Warning>
1717

18-
Multi-branch indexing is configured on in the [connection](/docs/connections/overview) using the `revisions.branches` and `revisions.tags` arrays. Glob patterns are supported. For example:
18+
Multi-branch indexing is configured in the [connection](/docs/connections/overview) using the `revisions.branches` and `revisions.tags` arrays. Glob patterns are supported. For example:
1919

2020
```json
2121
{

docs/docs/license-key.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ docker run \
3636
| [Login with SSO](/docs/configuration/auth/overview#enterprise-authentication-providers) | 🛑 ||
3737
| [Code navigation](/docs/features/code-navigation) | 🛑 ||
3838
| [Search contexts](/docs/features/search/search-contexts) | 🛑 ||
39+
| [Audit logs](/docs/configuration/audit-logs) | 🛑 ||
40+
| [Analytics](/docs/features/analytics) | 🛑 ||
3941

4042

4143
## Questions?

packages/web/src/features/search/searchApi.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,14 @@ const getFileWebUrl = (template: string, branch: string, fileName: string): stri
106106

107107
const url =
108108
template.substring("{{URLJoinPath ".length, template.indexOf("}}"))
109-
.replace(".Version", branch)
110-
.replace(".Path", fileName)
111109
.split(" ")
112110
.map((part) => {
113111
// remove wrapping quotes
114112
if (part.startsWith("\"")) part = part.substring(1);
115113
if (part.endsWith("\"")) part = part.substring(0, part.length - 1);
114+
// Replace variable references
115+
if (part == ".Version") part = branch;
116+
if (part == ".Path") part = fileName;
116117
return part;
117118
})
118119
.join("/");

0 commit comments

Comments
 (0)