Skip to content

Commit 60fbe25

Browse files
committed
chore: point edit page link to main branch
1 parent dedac5f commit 60fbe25

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/pages/[lang]/[...slug].astro

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,18 +195,16 @@ const lang = langParam as LanguageCode;
195195
const { Content, headings } = await render(page);
196196
const { title, description } = page.data;
197197
const isTranslation = lang !== 'en';
198-
const fileExt = page.filePath?.endsWith('.mdx') ? '.mdx' : '.md';
199198
const { prev, next } = getAdjacentPages(
200199
slug,
201200
lang,
202201
[{ menu: docsMenu }, { menu: apiMenu }, { menu: resourcesMenu, global: true }],
203202
version
204203
);
205204
206-
// TODO: change the url when finish the redesign, this is just a temporary solution to avoid broken links for translated pages
207205
const editUrl = isTranslation
208-
? `https://github.com/expressjs/expressjs.com/blob/redesign/docs/i18n.md`
209-
: `https://github.com/expressjs/expressjs.com/edit/redesign/src/content/${page.collection}/${page.id}${fileExt}`;
206+
? `https://github.com/expressjs/expressjs.com/blob/main/docs/i18n.md`
207+
: `https://github.com/expressjs/expressjs.com/edit/main/${page.filePath}`;
210208
---
211209

212210
<DocLayout

0 commit comments

Comments
 (0)