Closed kng-caoxuanson closed 2 months ago
Hmm strange, are you using base URLs by any chance :thinking: ? A reproduction would help me solve it faster for you, you can use https://stackblitz.com/edit/github-v9xq4g-nzfy4x?file=nuxt.config.ts as a starter
Hmm strange, are you using base URLs by any chance 🤔 ? A reproduction would help me solve it faster for you, you can use https://stackblitz.com/edit/github-v9xq4g-nzfy4x?file=nuxt.config.ts as a starter
In your example I see it still has /#website
The trailing slash on the root domain is expected, either is fine but it's better practice to include it as this is how browsers will generally resolve it
The trailing slash triggers a "pages with redirect" in my Google Search Console for all my pages. It must be removed when trailingSlashes option is set to default. Also the schema-org:meta hook only triggers on the client side and the meta object is completly empty.
The trailing slash on the root path won't trigger this. Can you please provide a reproduction if you have a separate issue?
Details
I'm coding with the following dependencies:
"nuxt": "^3.10.2", "nuxt-schema-org": "^3.3.4"
However, when integrated, the URL automatically adds a trailing slash at the end of the page in the schema. Even though I have configured trailingSlash: false in the nuxt.config.ts file.
I'm trying to achieve the following result:
Current: https://kimkhicholon.com/danh-muc/#webpage Desired: https://kimkhicholon.com/danh-muc#webpage
I appreciate any guidance on how to achieve this. Thank you.