After upgrading, weblinks no longer works. URL are launched in a separate window like intended, but the shortcut is not redirected.

Comments

duztin’s picture

I'm having the same problem

duztin’s picture

Ok I found the fix, I don't know much php but it seems to work, open weblink.module, all the way at the bottom it says

function _weblink_page_goto($id, $type = 'weblink') {
if (in_array($type, array("weblink", "feed"))) {
db_query("UPDATE {weblink} SET click = click + 1 where nid = '%d'", $id);
$result = db_query("SELECT %s FROM {weblink} WHERE nid = '%d'", $type, $id);
$wl = db_fetch_object($result);
header("HTTP/1.0 301 Moved Permanently");
header("Location: " . $wl->$type);

Erase line 661 making it look like

function _weblink_page_goto($id, $type = 'weblink') {
if (in_array($type, array("weblink", "feed"))) {
db_query("UPDATE {weblink} SET click = click + 1 where nid = '%d'", $id);
$result = db_query("SELECT %s FROM {weblink} WHERE nid = '%d'", $type, $id);
$wl = db_fetch_object($result);
header("Location: " . $wl->$type);

usharf’s picture

I'm having difficulties with weblinks to internal nodes, when doing [weblink:nnn]. Linking to fully URLs seems to work just fine.

Bèr Kessels’s picture

4.3 is no longer supprted. RE-open or add a new bug for 4.5 weblink module