refactor: rename share URL path from location to bills-due
- Renamed directory: app/[locale]/share/location -> app/[locale]/share/bills-due - Updated all URL references in web-app (billActions, locationActions, ViewBillCard) - Updated all URL references in email-worker templates (4 email templates) - Updated documentation in sprints/email-worker.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -627,7 +627,7 @@ export const uploadProofOfPayment = async (
|
||||
await cleanupExpiredShares(dbClient);
|
||||
|
||||
// 8. REVALIDATE CACHE
|
||||
revalidatePath(`/share/location/${shareId}`, 'page');
|
||||
revalidatePath(`/share/bills-due/${shareId}`, 'page');
|
||||
|
||||
return { success: true };
|
||||
|
||||
|
||||
@@ -775,7 +775,7 @@ export const uploadUtilBillsProofOfPayment = async (
|
||||
);
|
||||
|
||||
// 7. REVALIDATE CACHE
|
||||
revalidatePath(`/share/location/${shareId}`, 'page');
|
||||
revalidatePath(`/share/bills-due/${shareId}`, 'page');
|
||||
|
||||
return { success: true };
|
||||
} catch (error: any) {
|
||||
@@ -823,7 +823,7 @@ export const generateShareLink = withUser(
|
||||
|
||||
// Build share URL
|
||||
const baseUrl = process.env.NEXTAUTH_URL || 'http://localhost:3000';
|
||||
const shareUrl = `${baseUrl}/share/location/${shareId}`;
|
||||
const shareUrl = `${baseUrl}/share/bills-due/${shareId}`;
|
||||
|
||||
return { shareUrl };
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ export const ViewBillCard: FC<ViewBillCardProps> = ({ location, bill, shareId })
|
||||
}
|
||||
|
||||
<div className="text-right">
|
||||
<Link className="btn btn-neutral ml-3" href={`/share/location/${shareId || locationID}`}>{t("back-button")}</Link>
|
||||
<Link className="btn btn-neutral ml-3" href={`/share/bills-due/${shareId || locationID}`}>{t("back-button")}</Link>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user