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 e2e/support/siteContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const FLAGSHIP_PROJECTS = [
pageTitle: 'piech.dev | piech.dev',
},
{
route: '/projects/sealed-vote-web/',
route: '/projects/sealed-vote/',
cardName: 'sealed.vote',
pageTitle: 'sealed.vote | piech.dev',
},
Expand Down
12 changes: 12 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ to = "/projects/:splat"
status = 301
force = true

[[redirects]]
from = "/projects/sealed-vote-web"
to = "/projects/sealed-vote/"
status = 301
force = true

[[redirects]]
from = "/projects/sealed-vote-web/"
to = "/projects/sealed-vote/"
status = 301
force = true

# Contact routes
[[redirects]]
from = "/linkedin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ describe('ProjectMarkdown', () => {
it('uses the configured project name as the page heading and strips a redundant README title', () => {
render(
<ProjectMarkdown
markdown={'# sealed-vote-web\n\nOverview paragraph.'}
repo="sealed-vote-web"
markdown={'# sealed-vote\n\nOverview paragraph.'}
repo="sealed-vote"
/>,
);

Expand All @@ -36,7 +36,7 @@ describe('ProjectMarkdown', () => {
expect(
screen.queryByRole('heading', {
level: 1,
name: 'sealed-vote-web',
name: 'sealed-vote',
}),
).not.toBeInTheDocument();
expect(screen.getByText('Overview paragraph.')).toBeInTheDocument();
Expand Down
2 changes: 1 addition & 1 deletion src/features/Projects/projectsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const PROJECTS = [
},
{
name: 'sealed.vote',
repo: 'sealed-vote-web',
repo: 'sealed-vote',
projectPreview: {
fileName: 'sealed.vote.mp4',
width: 2542,
Expand Down
8 changes: 4 additions & 4 deletions src/routes/project-item.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { meta as projectItemMeta } from './project-item';
describe('project-item route meta', () => {
it('uses a trailing-slash canonical URL for project routes', () => {
const metaArgs = {
params: { repo: 'sealed-vote-web' },
params: { repo: 'sealed-vote' },
data: null,
location: {
pathname: '/projects/sealed-vote-web/',
pathname: '/projects/sealed-vote/',
search: '',
hash: '',
state: null,
Expand All @@ -27,11 +27,11 @@ describe('project-item route meta', () => {
expect.objectContaining({
tagName: 'link',
rel: 'canonical',
href: 'https://piech.dev/projects/sealed-vote-web/',
href: 'https://piech.dev/projects/sealed-vote/',
}),
expect.objectContaining({
property: 'og:url',
content: 'https://piech.dev/projects/sealed-vote-web/',
content: 'https://piech.dev/projects/sealed-vote/',
}),
]),
);
Expand Down
Loading