0

In context to the answer of 'Alo Sarv' at this question:-

Why is Facebook share button pulling parameters from the meta tags instead of my specified ones?

I'm facing a problem.

How can I achieve this:-

http://siteA.com?siteA_URL=http://siteB.com?siteB_title=abc&siteB_description=def&siteA_title=ghi&siteA_description=jkl

Such that siteA_URL is

siteA_URL = http://siteB.com?siteB_title=abc&siteB_description=def

and not:-

siteA_URL = http://siteB.com?siteB_title=abc
1
  • Is this a javascript question? Commented Jan 10, 2014 at 22:09

1 Answer 1

1

You need to correctly encode the URL parameter:

var siteA_URL = encodeURIComponent("http://siteB.com?siteB_title=abc&siteB_description=def");
var url = "http://siteA.com?siteA_URL=" + siteA_URL;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.