You could use
<a href="https://www.facebook.com/sharer/sharer.php?u=#url" target="_blank">
Share
</a>
Currently there is no sharing option without passing current url as a parameter. You can use an indirect way to achieve this.
- Create a server side page for example: “/sharer.aspx”
- Link this page whenever you want the share functionality.
- In the “sharer.aspx” get the refering url, and redirect user to “https://www.facebook.com/sharer/sharer.php?u={referer}”
Example ASP .Net code:
public partial class Sharer : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
var referer = Request.UrlReferrer.ToString();
if(string.IsNullOrEmpty(referer))
{
// some error logic
return;
}
Response.Clear();
Response.Redirect("https://www.facebook.com/sharer/sharer.php?u=" + HttpUtility.UrlEncode(referer));
Response.End();
}
}