I'm creating a social sharing bookmarklet and button that lets users share a link along with an optional text.

What structure is more recommended to use?



or with a folder:


(Or a completely different one?)

  • 2
    Do you see a particular user experience benefit one way or the other?
    – Matt Obee
    Commented Jan 7, 2013 at 13:36
  • 2
    What is the UX aspect of this question ?
    – Mervin
    Commented Jan 7, 2013 at 14:47
  • Usually the way to find out what best practices are is to visit a lot of sites that do what you're looking for. Evaluate what's best for your situation and what's not. (Remember that best practices change over time. What was best in 2013 might be pretty lousy now.) Commented Sep 18, 2019 at 18:31

2 Answers 2


I personally think that using share as a variable in the URL describes the nature of the link more readily instead of a "folder" called share.


It explicitly implies that the URL following "share=" is the URL being shared as opposed to:


which doesn't imply the intended action as well. I also like Kayo's version, it makes for a more descriptive URL while defeating the arbitrary nature of having share as a "folder".


I don't know why the '/share/' sub-directory would be needed. Perhaps be more explicit in your variable names.


Not the answer you're looking for? Browse other questions tagged or ask your own question.