Skip to content

Commit

Permalink
Merge pull request #1342 from thebiggive/DON-889-flag
Browse files Browse the repository at this point in the history
DON-889: Remove "skip to content" link in prod to avoid releasing bef…
  • Loading branch information
bdsl authored Oct 11, 2023
2 parents 9043e6c + 78af315 commit 37a0caa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Can't use a simple relative link for the URL because we have base href set of /d/ set in non-dev environments
which is needed for links to assets but would break this.
-->
<a [href]="currentUrl.toString() + '#content'">Skip to content</a>
<a *ngIf="flags.skipToContentLinkEnabled" [href]="currentUrl.toString() + '#content'">Skip to content</a>
</div>


Expand Down
1 change: 1 addition & 0 deletions src/app/featureFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {EnvironmentID} from "../environments/environment.interface";
export const flagsForEnvironment = (environmentId: EnvironmentID) => {
return {
don819FlagEnabled: (environmentId === 'development' || environmentId == 'staging'),
skipToContentLinkEnabled: environmentId !== 'production',
};
}

Expand Down

0 comments on commit 37a0caa

Please sign in to comment.