fix: .md 파일이 .html로 변환되는 과정에서 발생하는 상대경로 라우팅 오류 해결 #642
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Key Changes
shared.mts에서<base href="/code-quality/">태그를 제거하여 상대 경로 링크가 올바르게 동작하도록 수정했습니다.문제 상황:
/code-quality/code/페이지에서./examples/submit-button링크 클릭 시/code-quality/code/examples/submit-button.html/code-quality/examples/submit-button.html(404 에러)원인 분석:
HTML
<base>태그는 페이지 내 모든 상대 경로의 기준점(base URL)을 변경합니다.<base href="/code-quality/">가 설정되어 있으면./,../)가 현재 페이지가 아닌/code-quality/를 기준으로 해석됩니다/code-quality/code/에서./examples/submit-button는/code-quality/code/+examples/submit-button✅/code-quality/+examples/submit-button❌해결 방법:
<base>태그를 제거하여 상대 경로가 현재 페이지 위치를 기준으로 정상 해석되도록 했습니다.🔄️ Before and After Comparison
/code-quality/code/페이지에서./examples/submit-button클릭 시→
/code-quality/examples/submit-button.html(404)/code-quality/code/./examples/submit-button클릭 시→
/code-quality/code/examples/submit-button.html(✅)AS-IS
2025-11-06.9.51.46.mov
TO-BE
2025-11-06.9.50.45.mov