Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/marketing/cloudfront/url-rewrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function handler(event) {
'/blog/local-diff-review-for-coding-agents': 'https://docs.plannotator.ai/learn/local-diff-review-for-coding-agents',
'/blog/plan-diff-see-what-changed': 'https://docs.plannotator.ai/learn/plan-diff-see-what-changed',
'/blog/plannotator-meets-pi': 'https://docs.plannotator.ai/open-source/agents/pi',
'/blog/sharing-plans-with-your-team': 'https://docs.plannotator.ai/workspaces/review-plans-and-technical-decisions',
'/blog/sharing-plans-with-your-team': 'https://docs.plannotator.ai/open-source/workflows/sharing',
'/blog/welcome': 'https://docs.plannotator.ai/open-source/'
};

Expand Down
9 changes: 6 additions & 3 deletions apps/marketing/cloudfront/url-rewrite.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,18 @@ describe('marketing CloudFront URL handling', () => {
);
});

test('redirects old blog URLs to their matching Learn pages', () => {
const result = run('/blog/plan-diff-see-what-changed/') as {
test('redirects the old sharing article directly to the current sharing guide', () => {
const result = run('/blog/sharing-plans-with-your-team') as {
statusCode: number;
headers: Record<string, { value: string }>;
};

expect(result.statusCode).toBe(301);
expect(result.headers.location.value).toBe(
'https://docs.plannotator.ai/learn/plan-diff-see-what-changed',
'https://docs.plannotator.ai/open-source/workflows/sharing',
);
expect(run('/blog/sharing-plans-with-your-team/')).toEqual(
result,
);
});

Expand Down
2 changes: 1 addition & 1 deletion apps/marketing/src/pages/rss.xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const migratedLinks: Record<string, string> = {
'local-diff-review-for-coding-agents': 'https://docs.plannotator.ai/learn/local-diff-review-for-coding-agents',
'plan-diff-see-what-changed': 'https://docs.plannotator.ai/learn/plan-diff-see-what-changed',
'plannotator-meets-pi': 'https://docs.plannotator.ai/open-source/agents/pi',
'sharing-plans-with-your-team': 'https://docs.plannotator.ai/workspaces/review-plans-and-technical-decisions',
'sharing-plans-with-your-team': 'https://docs.plannotator.ai/open-source/workflows/sharing',
welcome: 'https://docs.plannotator.ai/open-source/',
};

Expand Down