Code Monkey home page Code Monkey logo

Comments (5)

stefanobartoletti avatar stefanobartoletti commented on July 21, 2024 1

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:

Screenshot_20240609_015238

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.

stefanobartoletti avatar stefanobartoletti commented on July 21, 2024 1

@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.

stefanobartoletti avatar stefanobartoletti commented on July 21, 2024

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.

medaminefh avatar medaminefh commented on July 21, 2024

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.

stefanobartoletti avatar stefanobartoletti commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.