Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / [v1.3.7] EZ Pages converts "relative" link to "absolute" link

[v1.3.7] EZ Pages converts "relative" link to "absolute" link

Locked

Started by thekanyon on 29 Sep 2007, 9:27 AM · Views: 1,698

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
29 Sep 2007, 9:27 AM
#1
thekanyon avatar

thekanyon

New Zenner

Join Date:
May 2007
Location:
San Diego, CA
Posts:
4
Plugin Contributions:
0

Post #1 by thekanyon

(I couldn't find this issue in the forum but I hope you have an easy fix.)

When adding content to EZ Pages, the user wants to create a relative link to another page within the site. The first time you enter and save the link it works fine. However, if you try to re-edit the page, the "relative link" is converted to an "absolute link". Not only that, but the path to the new "absolute link" is the path to the "admin" subdirectory.

I told my client that they need to convert the "absolute" link back the "relative" whenever they want to edit the EZ Page content.

D Taniguchi / Kanyon Enterprises
www.thekanyon.com
[email protected]

29 Sep 2007, 9:31 AM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

If they're using one of the rich-text editors (htmlarea, etc) instead of plain-text and doing their own HTML markup, then yes, they'll have to manually review each URL if they're editing the page.
You'll have the same problem with images you add via the rich-text editors as well.

.
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.

30 Sep 2007, 7:23 AM
#3
thekanyon avatar

thekanyon

New Zenner

Join Date:
May 2007
Location:
San Diego, CA
Posts:
4
Plugin Contributions:
0

Post #3 by thekanyon

Thanks for the quick response. It's good to know that the plain html will work with relative links.

D Taniguchi / Kanyon Enterprises
www.thekanyon.com
[email protected]