Comments (5)
As a side note, you should avoid using whitespaces in your URLs, as it may lead to all sorts of strange behaviors, not just when sharing on social media (think about manually copy-pasting in an email), and even browsers could handle them ambiguously, like i.e. Firefox:
I can still have a look at this issue and see if the solution you proposed could help mitigate the problem, but it would help only when using those buttons to share, not in every other case.
You should use different characters to separate words in URL, the most common solution is using hypens -
, so the URL would be https://domain.com/Fournitures-création-accessoires-cheveux
.
Some references:
https://webmasters.stackexchange.com/questions/32867/does-using-spaces-in-a-url-affect-seo
https://stackoverflow.com/questions/497908/is-a-url-allowed-to-contain-a-space
(just the first thing that come out with a quick search, you can delve more if you want)
from nuxt-social-share.
@medaminefh The latest released version uses a URL constructor to return shared URLs.
I haven't merged your own PR because there were other changes too, but the functionality is there.
This should help to handle your specific URL configuration, but I still suggest you to use a more conventional way to create your paths.
from nuxt-social-share.
Thanks, but I don't understand clearly what is happening here. What does "normal text instead of a link" mean?
What do you expect to get, and what are you getting instead? Could you please better describe the whole situation?
Also, to better understand what is going on, it is always better to include a minimal demo with a reproducible issue. A github repository or a demo on stackblitz would be the optimal way to provide this.
from nuxt-social-share.
I mean when the URL has spaces in it will appear like this at the URL tab https://domain.com/Fournitures%20création%20accessoires%20cheveux
but when I share it on Fb for exp it will share it like this https://domain.com/Fournitures
création accessoires cheveux.
Have a look at This link and try to share it on FB or any other platform
from nuxt-social-share.
I see, I am also experiencing the issue documented here #177, the right URL is not correctly generated.
I may need to investigate this further, meanwhile can you better document your proposed solution in the draft PR that you opened? And test it if possible?
from nuxt-social-share.
Related Issues (10)
- Internal server error: [unimport] failed to find "useRequestURL" imported from "#imports" HOT 5
- Dependency Dashboard
- Ability to change the label HOT 6
- Support new networks(LINE / Bluesky / Hatena Bookmark) HOT 3
- Share to Instagram feature HOT 2
- Share to Facebook not working HOT 6
- Fix `useRequestUrl` returning `localhost` on production environment HOT 3
- How to correctly use the useSocialShare composable in nuxt-social-share? HOT 1
- [Feature]: dynamic baseURL from `useRequestEvent` (server) or `location` (client) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt-social-share.