Forums / Basic Configuration / Links entered in admin area Defaulting to Admin

Links entered in admin area Defaulting to Admin

Locked

Started by silkenstrand on 19 Jun 2007, 6:25 PM · Views: 2,152

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
19 Jun 2007, 6:25 PM
#1
silkenstrand avatar

silkenstrand

New Zenner

Join Date:
Jul 2005
Posts:
29
Plugin Contributions:
0

Links entered in admin area Defaulting to Admin

I've developed a number of zencart storefronts, and I've seen this problem with each one. Unfortunately, this time the problem is worsened by the number of links I'm creating.

An example page to look at would be

http://wholesaletrailersupplies.com/dev/index.php?main_page=index&cPath=1_7

You will see that I am creating tables at the front of each category. The table has a link to each product in that category. I can create the table just fine. I can create the links just fine. Because of the "https" I do not want to create a hard link, so my link would read

index.php?main_page=product_info&cPath=1_7&products_id=43

The table will work just fine, but if I have to go in and add something or do an edit, when I save the category the link will now read

http://wholesaletrailersupplies.com/dev/admin/index.php?main_page=product_info&cPath=1_7&products_id=43

Note that "admin" is now part of the link.

How can I overcome this? Will linking to

http://wholesaletrailersupplies.com/dev/index.php?main_page=product_info&cPath=1_7&products_id=43

instead of

index.php?main_page=product_info&cPath=1_7&products_id=43

cause me certificate errors?

Thanks,

Tina

19 Jun 2007, 7:04 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Links entered in admin area Defaulting to Admin

Change your HTML editor to "Text Only" instead of htmlarea etc, and you can enter your links as you desire.

The path to your admin area is being added by the editor because the editor is running from within the admin folder.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Oct 2007, 1:50 AM
#3
phycel avatar

phycel

New Zenner

Join Date:
Sep 2007
Location:
Daytona Beach, Florida
Posts:
21
Plugin Contributions:
0

Re: Links entered in admin area Defaulting to Admin

I have the knowledge to get around this problem of the HTML editor inserting admin/ into the link path -- but some of my clients do not have the know-how to edit in plain text mode.

Any fixes for this problem?

It also does the same thing with images. Any time a client of mine tries to edit their pages -- their images and links then want to default to admin/ folders.

It seems there should be a way around this since other CMS scripts I have come across do not have this problem. Is there another HTML editor I can provide my clients that will not have this problem?

Thanks in advance!

Rene

Rene / Phycel Designs

Graphic Arts and Websmith Technologies

15 Aug 2008, 11:45 AM
#4
loosefast avatar

loosefast

Zen Follower

Join Date:
Jun 2005
Posts:
199
Plugin Contributions:
0

Re: Links entered in admin area Defaulting to Admin

phycel makes a very good point here. If it don't work for the client...

15 Aug 2008, 1:36 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Links entered in admin area Defaulting to Admin

loosefast:

phycel makes a very good point here. If it don't work for the client...

Correct. If it won't work for the client ... then surely they'll pay you to either educate them on ways that will work, or to write a new editor that will meet their needs.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.