Skip to content

feat: allow custom pathname in config #CRBR-1610#80

Merged
KubaJastrz merged 2 commits into
masterfrom
pathname
Sep 4, 2025
Merged

feat: allow custom pathname in config #CRBR-1610#80
KubaJastrz merged 2 commits into
masterfrom
pathname

Conversation

@KubaJastrz
Copy link
Copy Markdown
Contributor

@KubaJastrz KubaJastrz commented Sep 4, 2025

[6.1.0]

Features

  • Added new config option pathname to specify a custom pathname for the widget URL.

@KubaJastrz KubaJastrz self-assigned this Sep 4, 2025
Copilot AI review requested due to automatic review settings September 4, 2025 09:35
@KubaJastrz KubaJastrz requested review from a team, macbem and quezak as code owners September 4, 2025 09:35
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 4, 2025

Messages
📖

Jira issue(s) related to this PR:

Generated by 🚫 dangerJS against b051464

@KubaJastrz KubaJastrz changed the title feat: allow custom pathname in config feat: allow custom pathname in config #CRBR-1610 Sep 4, 2025
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Sep 4, 2025

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for a custom pathname configuration option to allow overriding the default pathname of the widget URL. This enables hosts to customize the path portion of the widget iframe URL while maintaining the existing URL structure.

  • Added a new optional pathname configuration field to the host config interface
  • Enhanced the URL building logic to apply custom pathname when provided
  • Updated the configuration destructuring to exclude the new pathname field from the prepared config

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/types.ts Adds TPathname type alias and pathname optional field to IHostConfig interface
src/init-helpers.ts Implements custom pathname logic in getBaseUrl function and updates config destructuring

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/init-helpers.ts
@KubaJastrz KubaJastrz merged commit 53d769b into master Sep 4, 2025
6 checks passed
@KubaJastrz KubaJastrz deleted the pathname branch September 4, 2025 09:48
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

Successfully merging this pull request may close these issues.

3 participants