diff --git a/.github/workflows/snapshots.yml b/.github/workflows/snapshots.yml index 5a17740832d7..f66172ff1c84 100644 --- a/.github/workflows/snapshots.yml +++ b/.github/workflows/snapshots.yml @@ -1,5 +1,6 @@ name: 🚀 Snapshots on: + pull_request: # debug only, revert before merge push: branches: [main, 'v[0-9]+.x', 'release/**'] workflow_dispatch: @@ -30,7 +31,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} snapshots-of-release: - if: ${{ contains(github.head_ref || github.ref_name, 'release/') || github.event.inputs.updateMain == 'true' }} + # debug only, revert before merge name: production runs-on: ubuntu-latest steps: diff --git a/projects/demo/src/modules/app/app.providers.ts b/projects/demo/src/modules/app/app.providers.ts index 020bbb58c45c..b0fd9d636863 100644 --- a/projects/demo/src/modules/app/app.providers.ts +++ b/projects/demo/src/modules/app/app.providers.ts @@ -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, @@ -171,9 +170,11 @@ 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: (baseHref: string) => (tree: UrlTree) => { + console.info('=[TUI_DOC_URL_STATE_HANDLER]= ', {baseHref, tree}); + + return String(tree).replace(/^\/(next|v[0-9]+)\//, ''); + }, }, { provide: TUI_DOC_TYPE_REFERENCE_HANDLER,