I have my links directory in a subdir (www.mysite.com/links) and I have two issues right now.
In the admin section, clicking on "Browse Categories" at the botton redirects to "www.mysite.com/mysite/links" (site name showing twice) rather than open in "www.mysite.com/links/index.php" I have tried to change the codes in some tpls but not working for me.
Secondly, I activated the "open links in frameset" in admin switches. The problem now is whenever someone clicks on a link in the directory, it opens up the external site fine but the "Return to mysite Links Directory" at the top takes them to "www.mysite.com/mysite/links" (site name showing twice) rather than open "www.mysite.com/links/index.php"
Since you wrote incomplete urls in your post, perhaps you also wrote them in your admin panel. At Admin -> Settings -> System you need to have the full site and directory URLs. A website URL starts with either http:// or https:// .
I didn't write the wrong urls as you indicated. I actually have the http:// in the beginning. Your solution is not what I expected as I have gone thru the whole admin menu section. And my problem persist.
The main issue is the code below and how it redirects the link back in the redirect or link tpls:
if (!$id && !$orderid && !$catid && !$action) { $template = new template("redirect.tpl"); $template->replace('{MESSAGE}', $language->nosuchlink); $template->replace('{DESTINATION}', 'index.php'); }
Whenever it tries to direct people back to my Directory, it goes to the wrong url "http://www.mysite.com/mysite/links" (site name showing twice). I have checked the config file and it looks fine. The url in the admin > settings is "http://www.mysite.com/mysite/links/index.php"
Comments on Links Redirect Issues
Beginner
Usergroup: Customer
Joined: Jul 05, 2007
Total Topics: 1
Total Comments: 2
I have my links directory in a subdir (www.mysite.com/links) and I have two issues right now.
In the admin section, clicking on "Browse Categories" at the botton redirects to "www.mysite.com/mysite/links" (site name showing twice) rather than open in "www.mysite.com/links/index.php" I have tried to change the codes in some tpls but not working for me.
Secondly, I activated the "open links in frameset" in admin switches. The problem now is whenever someone clicks on a link in the directory, it opens up the external site fine but the "Return to mysite Links Directory" at the top takes them to "www.mysite.com/mysite/links" (site name showing twice) rather than open "www.mysite.com/links/index.php"
Any help is appreciated.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Since you wrote incomplete urls in your post, perhaps you also wrote them in your admin panel. At Admin -> Settings -> System you need to have the full site and directory URLs. A website URL starts with either http:// or https:// .
Beginner
Usergroup: Customer
Joined: Jul 05, 2007
Total Topics: 1
Total Comments: 2
Hi Paul,
I didn't write the wrong urls as you indicated. I actually have the http:// in the beginning. Your solution is not what I expected as I have gone thru the whole admin menu section. And my problem persist.
The main issue is the code below and how it redirects the link back in the redirect or link tpls:
if (!$id && !$orderid && !$catid && !$action) { $template = new template("redirect.tpl");
$template->replace('{MESSAGE}', $language->nosuchlink);
$template->replace('{DESTINATION}', 'index.php'); }
Whenever it tries to direct people back to my Directory, it goes to the wrong url "http://www.mysite.com/mysite/links" (site name showing twice). I have checked the config file and it looks fine. The url in the admin > settings is "http://www.mysite.com/mysite/links/index.php"
$prefix = 'links_';
$dirurl = 'http://www.mysite.com/links';
$uploadpath = '/home/xxxxxxxx/public_html/mysite/links/attachments/';
I am using "mysite" and "xxxxxxxx" for illustrative purposes and they represent the site name and root dir respectively.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The url in the admin > settings is "http://www.mysite.com/mysite/links/index.php"
The setting asks for the directory name, not a file name. Read the instructions next to it and remove the /index.php.