开发者

php messing up link

开发者 https://www.devze.com 2023-02-11 09:30 出处:网络
I\'m trying to create a link as follows: <a href=\"http://www.facebook.com/sharer.php?u=<?= $linkAddress ?>&t<?= $message ?>\">

I'm trying to create a link as follows:

<a href="http://www.facebook.com/sharer.php?u=<?= $linkAddress ?>&t<?= $message ?>">

however, when I click the link, it takes me to the correct URL, but preceeded with:

http://pal.sandbox.dev.co.uk/go/music/artists/profile/show/ext/_auto/-/

which is (close to) the address of the page I've just come from. Anyone have any ideas why this might be happening?

to clarify:

the html generated is:

<a href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.bbc.co.uk%2Fprogrammes%2Fp001d7pg&t=My+music+was+broadcast">

but clicking this link takes the user to the address:

http://pal.sandbox.dev.开发者_运维知识库co.uk/go/music/artists/profile/show/ext/_auto/-/http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.abc.co.uk%2Fprogrammes%2Fp001d7pg&t=My+music+was+broadcast


<a href="http://www.facebook.com/sharer.php?u=<?= $linkAddress ?>&t=<?= $message ?>">
missing the = after t


I've worked out that this is caused by javascript not php (disabling javascript fixes the problem). I haven't written any of this site's javascript, unfortunately, so will have to trawl through it looking for bugs..


I'm sure you've worked this out by now but this is something called go tracking. It's an internal BBC thing so come and ask in #frameworks in IRC if you need help.

0

精彩评论

暂无评论...
验证码 换一张
取 消