Rel=canonical "redirects" to double links
-
Our devs have set up rel=canonical on our website. First they used relative links
href="/dir1/dir2/dir3"
for the page http://www.mysite.com/dir1/dir2/dir3/?detail1=1?detail2=2 meaning that it will redirect to http://www.mysite.com/dir1/dir2/dir3, but no luck, the MOZ dashboard showed the tag value to be http://www.mysite.com/dir1/dir2/dir3/dir1/dir2/dir3, then we have decided to rewrite the code, and now the canonical to http://wwwmysite.com/dir1/dir2/dir3/?detail1=1?detail2=2 looks like
href="http://www.mysite.com/dir1/dir2/dir3/"
but the tag on MOZ looks like http://www.mysite.com/dir1/dir2/dir3http://www.mysite.com/dir1/dir2/dir3. So what is the problem? I really got a problem or MOZ does?
The code on website looks exactly like href="http://www.aaa.com/en/bbb/ccc/vvv/nnn/" rel="canonical" /> for the page http://www.aaa.com/en/bbb/ccc/vvv/nnn/
-
When you're using the code like this as you've mentioned: for the page http://www.aaa.com/en/bbb/ccc/vvv/nnn/ then you're using the right tags.