Skip to content
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

'@docusaurus/useBaseUrl' showing in previous when sharing a link to docs on social media. #2373

Closed
adamstevens87 opened this issue Mar 7, 2020 · 0 comments · Fixed by #2380
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers

Comments

@adamstevens87
Copy link

adamstevens87 commented Mar 7, 2020

We must include:
import useBaseUrl from '@docusaurus/useBaseUrl';
...in order to use images in the pages.

When I share a docs page that includes this import, the preview (generated by Facebook, Whatsapp etc) shows this as the first line of content which looks poor.

image

I am using:

"dependencies": { "@docusaurus/core": "^2.0.0-alpha.43", "@docusaurus/preset-classic": "^2.0.0-alpha.43", "classnames": "^2.2.6", "react": "^16.13.0", "react-dom": "^16.13.0" },

@adamstevens87 adamstevens87 added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Mar 7, 2020
@lex111 lex111 added this to the v2.0.0-alpha.49 milestone Mar 11, 2020
@lex111 lex111 removed this from the v2.0.0-alpha.49 milestone Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants