Skip to content

Commit

Permalink
More SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Feb 5, 2025
1 parent 340269f commit 6f4d88b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/projects/ask/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ export class HomeComponent {
this.question = data.question;
this.relatedQuestions = data.related;
this.setAnswer(data.answer);
const shortQuestion = data.question.length > 100 ? data.question.slice(0, 100) + '…' : this.question;
const shortAnswer = data.answer.length > 100 ? data.answer.slice(0, 100) + '…' : data.answer;
this.title.setTitle(`${shortQuestion} | Data Deep Search - ${this.deployment?.agentOrgName || ''}`);
this.meta.updateTag({ name: 'description', content: shortAnswer});
});
}

Expand Down

0 comments on commit 6f4d88b

Please sign in to comment.