[MAGNOLIA-1190] external link incorrect in SamplesLinkParagraph Created: 08/Nov/06  Updated: 23/Jan/13  Resolved: 08/Nov/06

Status: Closed
Project: Magnolia
Component/s: samples
Affects Version/s: 3.0 RC4
Fix Version/s: 3.0 Final

Type: Bug Priority: Minor
Reporter: jason wan Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

WindowsXP, jBoss_4.0.4.GA, magnolia3.0(all RCs)


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

When new a paragraph and use the Samples Link paragraph, choose to set up an external link, for example enter "www.google.com" in the link field, select "external" and save. The link was set up to the page, but it linked to the strange URL: "http://www.google.comwww.google.com/".



 Comments   
Comment by Penkov Vladimir [ 08/Nov/06 ]

In /magnoliaAuthor.war/templates/samples/paragraphs/link.jsp

there is a code like this (line 28):
------------------------------
if (html.indexOf("://")==-1) {
html.append("http://");
}
------------------------------

change it to
------------------------------
if (link.indexOf("://") < 0) {
html.append("http://");
}
------------------------------

Comment by Magnolia International [ 08/Nov/06 ]

Corrected on svn, thanks.

Generated at Mon Feb 12 03:24:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.