Skip to content

Commit

Permalink
fix: encoded url 가 ui 에 노출되던 문제
Browse files Browse the repository at this point in the history
  • Loading branch information
deptno committed Oct 15, 2023
1 parent f8f410e commit 420d203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/wiki/app/wiki/[...md]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Markdown } from '../../../component/Markdown'
import { MarkdownAside } from '../../../component/MarkdownAside'

export default async (props: Props) => {
const { md } = props.params
const md = props.params.md.map(decodeURIComponent)
const path = md.join('/')
const currentPath = md.slice(0, -1).join('/')

Expand Down Expand Up @@ -44,7 +44,7 @@ type Props = {
}

export async function generateMetadata({ params }: Props) {
const path = params.md.join('/')
const path = params.md.map(decodeURIComponent).join('/')

return {
openGraph: {
Expand Down

0 comments on commit 420d203

Please sign in to comment.