We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 312e962 commit a9711ebCopy full SHA for a9711eb
app/helpers/github-link.js
@@ -5,7 +5,7 @@ export function githubLink([project, version, file, line], { isEdit = false }) {
5
const isEmberProject = project === 'ember';
6
const majorVersion = parseInt(version?.split('.')[0].replace('v', ''), 10);
7
8
- const baseVersion = `v${version.replace(/^v/, '')}`;
+ const baseVersion = version ? `v${version.replace(/^v/, '')}` : 'main';
9
10
// Check if the project is 'ember' and adjust the tag only if the major version is >= 6 to match the Git tags
11
const adjustedVersion =
0 commit comments