Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sef rewrite error linking to products within desc


jplaguna

Recommended Posts

I am using the SEF Link Transformer mod

http://www.oscommerce.com/community/contri...search,sef+link

 

I have a few products with accessories... and i've been trying to create a simple link within a product description to link to another product.

 

Here is my simple link:

 

This product includes <a href="domain.com/product52/product_info.html>this accessory</a>

 

When I view the page online, it rewrites as:

 

This product includes <a href="domain.com//product52product_info.html>this accessory</a>

 

 

Although the link still works... I don't think it's a good practice.

 

Any ideas? Thx.

 

ps. the rewrite line, i believe is in question, is this:

 

RewriteRule ^product([0-9{}]+_?[0-9{}]*)(/?.*)$ $2?products_id=$1&%{QUERY_STRING}

Link to comment
Share on other sites

Thank you for the assistance... it led me to investigate further.

 

I found the problem lies within the WYSIWYG Editor. When I'm editing a product description, and use the "Insert Web Link" command, it automatically appends the Full URL to what is entered.

 

- I enter "/product78/product_info.html"

- When I preview, everything looks fine

- After update, the WYSIWYG editor changes it to:

http://www.domain.com/product78/product_info.html

- When I view it online, SEF rewrites it to:

http://www.domain.com//product78product_info.html

 

When i switch to 'View HTML Source', and edit the link, the WYSIWYG editor doesn't append the Full URL. Even if i reopen, edit something else, and save it again.

 

I'm currently using WYSIWYG Editor 1.7, and guess it's time to find another.

 

Thanks!

Link to comment
Share on other sites

yes for this and some other issues I want to customize the description pages so I tend to avoid integrated editors. Either way you need the eval or a separate parser because with a straight http link within your site you loose the session. The tep_href_link has to be used.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...