-
-
Notifications
You must be signed in to change notification settings - Fork 628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<ContentDoc /> component path property must be lower letter #2447
Comments
Although the case of URLs does not affect URL resolution in most cases, it is generally recommended to use lowercase and separate each word with a hyphen (-) for SEO purposes. For example, 雖然URL的大小寫在多數狀況下不影響網址解析。但就SEO的角度來看,通常建議使用小寫,並將各個單字用-隔開。例如 codepenio/easyComSlider ,建議改成 codepenio/easy-com-slider。這是因為easyComSlider容易被解析成一個字,而非三個字。 |
Thank you for the comment and the recommend.But the documentation about ContentDoc confused me.The path default value is the $route.path,but when it is not the lower letter,it will not work. |
I agree with your point. Perhaps the official documentation should remind users about this issue, or update the path parsing logic. However, I would recommend the former, for SEO purposes. |
Thank you again and I will follow your recommend. |
I have the same issue with resolving the path in queryContent(). It doesnt work if capital letters appear in the path. If this is a desired behavior, it should be mentioned in the documentation and also in the migration guide, as it still worked with capital letters in the old version of nuxt-content. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. |
Environment
Reproduction
the first screenshot is the code.the second is the web show. clearly if the route.path is lower letter it works.
Describe the bug
like the screenshot, the $route.path is "codepenio/easyComSlider". but when i use in the pages/codepenio/easyComSlider.vue can not render the markdown file. when i add path "codepenio/easycomslider" it works.
according to the article,default path is the $route.path. is the path lower letter is neccessary.
please forgive my terrible english.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: