cancel
Showing results for 
Search instead for 
Did you mean: 

how to add a URL contains char # in link component?

Former Member
0 Kudos

Hi All,

I wanna add a cmslinkcomponent like below, but the actual URL will be

/terms-and-conditions%23terms-5#terms-5.

it should be /terms-and-conditions#terms-5

Why? Could you give me some idea to fix it?

 INSERT_UPDATE CMSLinkComponent;$contentCV[unique=true];uid[unique=true];name;url;target(code)[default='sameWindow'];visible[default=true];linkName[lang=$lang]
 ;;IntellectualPropertyLink;Intellectual Property;"/terms-and-conditions#terms5";newWindow;;"Intellectual Property" 

Accepted Solutions (1)

Accepted Solutions (1)

svintha
Explorer
0 Kudos

Hi , I am able to update the link component url and it is working fine with out any issues . I have tried below impex and it is working fine . Even modified the link component url in the cmscokpit and it is working fine .

INSERT_UPDATE CMSLinkComponent;$contentCV[unique=true];uid[unique=true];name;url;&componentRef;target(code)[default='sameWindow'] ;;TrackOrdersLink;Track Orders;"/oshstorefront/login/trackorders#terms5";TrackOrdersLink;

Former Member
0 Kudos

Hi ,

Thanks for your quick reply.

I wanna implement the below ticket, you can refer to it.

Links with anchor in CMS

Former Member
0 Kudos

Sorry for my mistake.

I checked the CMSLinkComponentRenderer.java in my local.

There's a modify if URL has char #.

Thanks a lot!

Answers (0)