So looking at the description in games there is a problem. In some the entire url to giant bomb is supplied
ie: http://www.giantbomb.com/third-person-perspective/3015-464/
in others only partial
ie: /third-person-perspective/3015-464/
and in some a mix of both. I write some jquery to fill the void of the partial but for those that supply the giantbomb.com url I end up having
ie: http://giantbomb.com//www.giantbomb.com/assassins-creed-iii/3030-37494/
So what is the way around this, does anyone have a code snippet to work around this?
Currently I have this
[code]
$("[data-ref-id|='3030']").attr('href', function (idx, href) {
return 'http://giantbomb.com' + href;
});
[/code]
Where I just supply the first 4 numbers of the ref id to the url.
Log in to comment