Skip to content

Commit

Permalink
fix(specs): correct edit page (#6342)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv authored Aug 30, 2024
1 parent f2bebf0 commit 826cebf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion specs/src/config.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const GITHUB_EDIT_URL = `https://github.com/algolia/instantsearch/edit/master/packages/instantsearch.css`;
export const GITHUB_EDIT_URL = `https://github.com/algolia/instantsearch/edit/master`;
4 changes: 2 additions & 2 deletions specs/src/layouts/WidgetLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ type Props = {
const { frontmatter } = Astro.props;
const currentPage = Astro.url.pathname;
const currentFile = `src/pages${currentPage.replace(/\/$/, '')}.md`;
const githubEditUrl = `${GITHUB_EDIT_URL}/${currentFile}`;
const currentFile = `${currentPage.replace(/specs/, 'specs/src/pages')}.md`;
const githubEditUrl = `${GITHUB_EDIT_URL}${currentFile}`;
---

<MainLayout title={frontmatter.title}>
Expand Down

0 comments on commit 826cebf

Please sign in to comment.