Support » Plugin: Pretty Link Lite » Unable to make app-based links (like "itms")

  • Resolved Daniel J. Lewis


    iTunes (and many other apps) offer the ability to generate a link that will directly launch the application on any PC with that app installed. On iTunes, you would simply replace the “http” with “itms” for any links from the store.

    But the problem is that Pretty Link won’t accept a URL that starts with “itms://.” How can I hack this to make it work? Can the developer please consider updating the plugin to accept nontraditional URLs?

    By the way, I’m a Pretty Link Pro (developer) user and I’ve recommended Pretty Link many times to my podcast audience.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author cartpauj


    /classes/models/PrliLink.php and delete all of this:

    if( !empty($values['url']) and
              !preg_match('/^http.?:\/\/.*\..*$/', $values['url'] ) and
              !preg_match('!^(http|https)://(localhost|127\.0\.0\.1)(:\d+)?(/[\w- ./?%&=]*)?!', $values['url'] ) )
            $errors[] = __("Link URL must be a correctly formatted url", 'pretty-link');

    Can you incorporate that into future Pretty Link Lite and Pro editions? I can make these changes, but most Pretty Link users can’t.

    Plugin Author cartpauj


    I’ll put it in Blair’s issue tracker, but I can’t promise he’ll make this possible in future versions.

    I would also like to be able to do this, but I don’t have Daniel’s experience.

    From the information in this thread, I can’t find the file to edit.

    Where do I find the /classes/models/PrliLink.php ?

    Plugin Author cartpauj


    It’s in your website’s /wp-content/plugins/pretty-link/classes/models/ directory.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Unable to make app-based links (like "itms")’ is closed to new replies.