Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 704877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:59:27+00:00 2026-05-14T03:59:27+00:00

This is the URL I want to share: http://mydomain.com/#url=http://stackoverflow.com Inside my site, I do

  • 0

This is the URL I want to share:

http://mydomain.com/#url=http://stackoverflow.com

Inside my site, I do this in Django so that everything will work:

http://mydomain.com/#url={{external|urlencode}}

However, when I pass it to Facebook Share, everything gets messed up.

http://www.facebook.com/sharer.php?u=<url to share>&t=<title of content>

I tried to urlencode the #url part, and also the full url, but it’s not working, and my #url is not holding up when there are & and ? signs everywhere.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:59:27+00:00Added an answer on May 14, 2026 at 3:59 am

    I think the problem is, that you first urlencode the last part of url, which you then include into another url.

    try use urllib for that:

    import urllib
    urllib.quote("http://mydomain.com/#url=http://stackoverflow.com")
    

    or when you have to unquote something:

    urllib.unquote("http%3A//mydomain.com/%23url%3Dhttp%3A//stackoverflow.com")
    

    kind regards

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to add share this on Facebook to a page. I've got this
Currently have a database formatted as follows: id (unique id) url: http://domain.com/page.html Urls are
I have an asp.net web application in c# script. I want this application page
Im still fairly new to Django, so please explain things with that in mind.
I am sure someone has this done already, and was hoping someone could share
I have the following scenario... When I hover over span.share-this , it triggers a
I have numerous Web Services in my project that share types. For simplicity I
My goal is to be able to share configration settings amongst apps. For example
I want to use Amazon S3/CloudFront to store flash files. These files must be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.