Href problem


#1

Here’s my code:

<div class="list card">
      <div class="item item-divider">Links</div>
      <div class="list">
        <a class="item" href="https://www.google.com/">
          <h2>google</h2>
        </a>
      </div>
</div>

It works fine in ionic serve, but not good on my android phone.
Anybody coud help me? Thanks!


#2

Remember to include the whitelist plugin from cordova: https://github.com/apache/cordova-plugin-whitelist


#3

Thank you very much! It must be the correct solution!


#4

Well, one more word for newbie like me…whitelist plugin is already included in your default ionic project, so just directly modify config.xml