Closed (fixed)
Project:
Weblink
Version:
4.3.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 May 2004 at 07:53 UTC
Updated:
5 Nov 2004 at 10:55 UTC
After upgrading, weblinks no longer works. URL are launched in a separate window like intended, but the shortcut is not redirected.
Comments
Comment #1
duztin commentedI'm having the same problem
Comment #2
duztin commentedOk 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);
Comment #3
usharf commentedI'm having difficulties with weblinks to internal nodes, when doing [weblink:nnn]. Linking to fully URLs seems to work just fine.
Comment #4
Bèr Kessels commented4.3 is no longer supprted. RE-open or add a new bug for 4.5 weblink module