SAP Knowledge Base Article - Public

3506273 - HTML Mashup is not able to open a link via external browsers on C4C mobile.

Symptom

HTML Mashup is not able to open a link via external browsers on C4C mobile.

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental." 

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Create an HTML mashup containing the HTML tag <a href="https://bing.com"></a>.
  2. Add the mashup to the UI screen.
  3. It's able to open the link when accessing C4C on PC.
  4. However, it's not able to open the link when accessing C4C on mobile app.

Cause

The HTML tag <a></a> opens a link with the application running it. When you access C4C in the browser, it's the browser to open the link. When you access C4C in the C4C mobile app, it's C4C mobile app to open the link. However, the C4C mobile app does not support opening an external link. Thus the tag is not working on the mobile app.

Resolution

As a workaround, please use the function window.open() to open a link with an external browser. Here is a piece of code for your reference. In the demo, the first button can open the link on PC and mobile, while the second button can only open the link on PC.


Keywords

HTML Mashup, External Link, Mobile, Link , KBA , AP-RC-GEN-MSH , Mashups , AP-RC-MOB-AND , SAP Hybris Cloud for Customer Extnd App on Android , Problem

Product

SAP Cloud for Customer core applications all versions