Skip to content

Commit 8cb0408

Browse files
committed
Handle trailing slashes in repository URL for reporting issues
- Update `ReportIssue` component to trim trailing slashes from the repository URL before appending the issues path.
1 parent c27e06e commit 8cb0408

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • feature/details/presentation/src/commonMain/kotlin/zed/rainxch/details/presentation/components/sections

feature/details/presentation/src/commonMain/kotlin/zed/rainxch/details/presentation/components/sections/ReportIssue.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fun LazyListScope.reportIssue(
3232

3333
OutlinedCard(
3434
onClick = {
35-
uriHandler.openUri("$repoUrl/issues")
35+
uriHandler.openUri("${repoUrl.trimEnd('/')}/issues")
3636
},
3737
colors = CardDefaults.outlinedCardColors(
3838
containerColor = MaterialTheme.colorScheme.surfaceContainerLowest

0 commit comments

Comments
 (0)