Reputation: 329
I have this problem: In my .php file i have following a element:
<?php
$alias = $videos[$videoIndex]["alias"];
$urlHref = $domain . '/play.php?alias=' . $alias;
echo '<a href="' . $urlHref . '" class="vid">';
?>
then href attribute looks like: http://mypage123.com/template1/play.php?alias=name
But after click on it, it open site with following url: http://mypage123.com/template1/play.php?alias=name#.U6fudvmSxNo
I don`t get it, why is there this weird hash. Can I get rid of it? Did I something wrong
Upvotes: 0
Views: 72
Reputation: 332
convert your $alias
field to url friendly string first
ie. use
$alias=urlencode($alias);
Upvotes: 0
Reputation: 785
Are you by change using another plugin (example: for statistics)?
AddThis, for instance appends a hash, and a string to your URLs.
I know it because it has happened to my pages!
Upvotes: 1