admin管理员组文章数量:1313952
I have a page that only users of my native iOS app will find, which should open the app. This works (on any other HTML page anyway) by linking to "myapp://path/inside/app".
Wordpress keeps "fixing" this to "https://path/inside/app", which doesn't work of course. I didn't find a setting to stop it from doing this. Is this possible?
I have a page that only users of my native iOS app will find, which should open the app. This works (on any other HTML page anyway) by linking to "myapp://path/inside/app".
Wordpress keeps "fixing" this to "https://path/inside/app", which doesn't work of course. I didn't find a setting to stop it from doing this. Is this possible?
Share Improve this question asked Nov 25, 2020 at 16:39 StefanStefan 1011 bronze badge 3 |2 Answers
Reset to default 0I think your problem is that an HTML page is a single point of reference. Swift allows you to define that custom URL in your app ( https://www.hackingwithswift/example-code/system/how-to-make-your-app-open-with-a-custom-url-scheme) but WordPress rewrites itself and all sub-pages, api etc. to the URL defined in the database options. So, short answer, you can't do that. If you were to set the URL of the WordPress site to myapp://whatever it would break. Do you have to use myapp:// ?
I created this plugin to address my problem: https://github/mehlkelm/Allow-My-URL-Schemes At the moment it only works for my apps, pull requests welcome!
本文标签: Wordpress rewrites my link with custom URL scheme to http(s)
版权声明:本文标题:Wordpress rewrites my link with custom URL scheme to http(s) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741960397a2407243.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
href
of the link when somebody clicks it. – Deepak Kamat Commented Nov 25, 2020 at 16:47