We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab3b3b7 commit 61c048fCopy full SHA for 61c048f
1 file changed
packages/app/src/features/router/RouteUrl.ts
@@ -82,7 +82,7 @@ export class RouteUrl {
82
const pathKeys = this.extractPathKeys();
83
84
// Replace :param with actual values
85
- let url = this.replacePathParams(pathKeys);
+ let url = this.replacePathParams();
86
87
// Handle empty url
88
if (!url || url === "") {
@@ -158,7 +158,7 @@ export class RouteUrl {
158
/**
159
* Replace :param placeholders with actual values from params.
160
*/
161
- private replacePathParams(pathKeys: Set<string>): string {
+ private replacePathParams(): string {
162
return this.pattern.replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, (_, key) => {
163
const value = this.params![key];
164
if (value === undefined || value === null) {
0 commit comments