diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 202d02309a..6ed4ad7a80 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -168,7 +168,12 @@ const routes: Routes = [ ] @NgModule({ - imports: [RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' })], + imports: [ + RouterModule.forRoot(routes, { + relativeLinkResolution: 'legacy', + anchorScrolling: 'enabled', + }), + ], exports: [RouterModule], }) export class AppRoutingModule {} diff --git a/src/app/cdk/panel/panel-source/panel-source.component.html b/src/app/cdk/panel/panel-source/panel-source.component.html index 63f2b1015c..c5bb2b4263 100644 --- a/src/app/cdk/panel/panel-source/panel-source.component.html +++ b/src/app/cdk/panel/panel-source/panel-source.component.html @@ -14,22 +14,14 @@ Source:

() $destroy = new Subject() @@ -54,7 +53,6 @@ export class TermsOfUseComponent implements OnInit, OnDestroy { if (primaryEmail?.verified) { this.emailAlreadyVerified = true this._changeDetectorRef.detectChanges() - this.firstInput?.focus() } }) } diff --git a/src/app/developer-tools/pages/developer-tools/developer-tools.component.html b/src/app/developer-tools/pages/developer-tools/developer-tools.component.html index 1cf04c69b1..ace05d21e8 100644 --- a/src/app/developer-tools/pages/developer-tools/developer-tools.component.html +++ b/src/app/developer-tools/pages/developer-tools/developer-tools.component.html @@ -94,7 +94,6 @@ formControlName="displayName" type="text" id="displayName" - #firstInput /> { + this.window.window.scrollTo(0, 0) + this.window.history.replaceState({}, this.window.document.title, '/developer-tools') + }) + } + save() { this.formWasSummited = true diff --git a/src/app/record/components/affiliation-stack/affiliation-stack.component.html b/src/app/record/components/affiliation-stack/affiliation-stack.component.html index 31fec131e8..3a2dd3a208 100644 --- a/src/app/record/components/affiliation-stack/affiliation-stack.component.html +++ b/src/app/record/components/affiliation-stack/affiliation-stack.component.html @@ -74,6 +74,7 @@

[sourceName]="affiliation.sourceName || affiliation.source" [assertionOriginName]="affiliation.assertionOriginName" [assertionOriginOrcid]="affiliation.assertionOriginOrcid" + [assertionOriginClientId]="affiliation.assertionOriginClientId" [stackLength]="affiliationStack.affiliations.length" [(displayTheStack)]="displayTheStack" (makePrimary)="makePrimaryCard(affiliation)" diff --git a/src/app/record/components/funding-stack/funding-stack.component.html b/src/app/record/components/funding-stack/funding-stack.component.html index ce22149cba..4fe3b4683d 100644 --- a/src/app/record/components/funding-stack/funding-stack.component.html +++ b/src/app/record/components/funding-stack/funding-stack.component.html @@ -45,6 +45,7 @@

[isPreferred]="isPreferred(funding)" [sourceName]="funding.sourceName || funding.source" [assertionOriginName]="funding.assertionOriginName" + [assertionOriginClientId]="funding.assertionOriginClientId" [assertionOriginOrcid]="funding.assertionOriginOrcid" [stackLength]="fundingStack.fundings.length" [(displayTheStack)]="displayTheStack" diff --git a/src/app/record/components/peer-review-stack/peer-review-stack.component.html b/src/app/record/components/peer-review-stack/peer-review-stack.component.html index 1958268db6..b35e12ef50 100644 --- a/src/app/record/components/peer-review-stack/peer-review-stack.component.html +++ b/src/app/record/components/peer-review-stack/peer-review-stack.component.html @@ -117,6 +117,7 @@ [isPreferred]="isPreferred(subPeerReview)" [sourceName]="subPeerReview.sourceName || subPeerReview.source" [assertionOriginName]="subPeerReview.assertionOriginName" + [assertionOriginClientId]="subPeerReview.assertionOriginClientId" [assertionOriginOrcid]="subPeerReview.assertionOriginOrcid" [stackLength]="peerReviewStack.peerReviews.length" [(displayTheStack)]="displayTheStack" diff --git a/src/app/record/components/research-resource-stack/research-resource-stack.component.html b/src/app/record/components/research-resource-stack/research-resource-stack.component.html index d6bbf04953..124f1ffaaa 100644 --- a/src/app/record/components/research-resource-stack/research-resource-stack.component.html +++ b/src/app/record/components/research-resource-stack/research-resource-stack.component.html @@ -44,6 +44,7 @@

[sourceName]="research.sourceName || research.source" [assertionOriginName]="research.assertionOriginName" [assertionOriginOrcid]="research.assertionOriginOrcid" + [assertionOriginClientId]="research.assertionOriginClientId" [stackLength]="researchResourceStack.researchResources.length" [(displayTheStack)]="displayTheStack" (makePrimary)="makePrimaryCard(research)" diff --git a/src/app/record/components/work-stack/work-stack.component.html b/src/app/record/components/work-stack/work-stack.component.html index 104e15caec..5fa528e875 100644 --- a/src/app/record/components/work-stack/work-stack.component.html +++ b/src/app/record/components/work-stack/work-stack.component.html @@ -54,6 +54,7 @@

{{ work.title.value }}

[isPreferred]="isPreferred(work)" [sourceName]="work.sourceName || work.source" [assertionOriginName]="work.assertionOriginName" + [assertionOriginClientId]="work.assertionOriginClientId" [assertionOriginOrcid]="work.assertionOriginOrcid" [stackLength]="workStack.works.length" [(displayTheStack)]="displayTheStack"