Skip to content

Commit

Permalink
chore(demo): DocDemo generates invalid urls during attempts to patc…
Browse files Browse the repository at this point in the history
…h query params (#8480)
  • Loading branch information
nsbarsukov authored Aug 12, 2024
1 parent ef7e6f1 commit 33c621f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions projects/demo/src/modules/app/app.providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
tuiSortPages,
} from '@taiga-ui/addon-doc';
import {
TUI_BASE_HREF,
TUI_DIALOG_CLOSES_ON_BACK,
TUI_IS_E2E,
TUI_IS_PLAYWRIGHT,
Expand Down Expand Up @@ -171,9 +170,8 @@ export const APP_PROVIDERS: Provider[] = [
},
{
provide: TUI_DOC_URL_STATE_HANDLER,
deps: [TUI_BASE_HREF],
useFactory: (baseHref: string) => (tree: UrlTree) =>
String(tree).replace(baseHref, ''),
useFactory: () => (tree: UrlTree) =>
String(tree).replace(/^\/(next|v[0-9]+)\//, ''),
},
{
provide: TUI_DOC_TYPE_REFERENCE_HANDLER,
Expand Down

0 comments on commit 33c621f

Please sign in to comment.