Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Fix Fyle redirection url
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 committed Jan 4, 2024
1 parent 6524d62 commit e2dbc7c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/core/services/export-log/export-log.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class ExportLogService {
generateFyleUrl(expenseGroup: ExpenseGroup, referenceType: FyleReferenceType) : string {
let url = `${environment.fyle_app_url}/app/`;
if (referenceType === FyleReferenceType.EXPENSE) {
url += `main/#/view_expense/${expenseGroup.description.expense_id}`;
url += `admin/#/view_expense/${expenseGroup.description.expense_id}`;
} else if (referenceType === FyleReferenceType.EXPENSE_REPORT) {
url += `admin/#/reports/${expenseGroup.description.report_id}`;
} else if (referenceType === FyleReferenceType.PAYMENT) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class ExportLogChildDialogComponent implements OnInit {

expenseList.forEach((expense: Expense) => {
expenses.push({
fyleUrl: `${environment.fyle_app_url}/app/main/#/view_expense/${expense.expense_id}?org_id=${this.org_id}`,
fyleUrl: `${environment.fyle_app_url}/app/admin/#/view_expense/${expense.expense_id}?org_id=${this.org_id}`,
amount: [expense.amount, expense.currency],
merchant: expense.vendor,
category: expense.category,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class CloneSettingsComponent implements OnInit {
merchant: 'Pizza Hut',
report_number: 'C/2021/12/R/1',
spent_on: today.toLocaleDateString(),
expense_link: 'https://app.fylehq.com/app/main/#/enterprise/view_expense/'
expense_link: 'https://app.fylehq.com/app/admin/#/enterprise/view_expense/'
};

this.memoPreviewText = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export class AdvancedSettingsComponent implements OnInit, OnDestroy {
merchant: 'Pizza Hut',
report_number: 'C/2021/12/R/1',
spent_on: today.toLocaleDateString(),
expense_link: 'https://app.fylehq.com/app/main/#/enterprise/view_expense/'
expense_link: 'https://app.fylehq.com/app/admin/#/enterprise/view_expense/'
};

this.memoPreviewText = '';
Expand Down

0 comments on commit e2dbc7c

Please sign in to comment.