[英]Can't make Ionic3 “deeplinks” work
I'm trying to use deeplink inside an Ionic web application (not a native one). 我正在尝试在Ionic Web应用程序(不是本机应用程序)中使用Deeplink。
I followed these instructions step by step. 我逐步遵循了这些说明 。 But it seems to have absolutely no effect when entering the url (I see the home page).
但是输入网址时似乎完全没有效果(我看到主页了)。
app.module.ts app.module.ts
@NgModule({
declarations: [
// ...
],
imports: [
IonicPageModule.forChild(FeedbackPage),
BrowserModule,
HttpModule]
feedback.ts 反馈
@IonicPage({
segment: 'some-path',
})
@Component({
selector: 'page-feedback',
templateUrl: 'feedback.html',
})
export class FeedbackPage extends HugoApiErrorsMixin implements OnInit {
Accessing http://localhost:8100/#/some-path
display my home page instead of the Feedback page. 访问
http://localhost:8100/#/some-path
显示我的主页,而不是“反馈”页面。 Navigating manually to the Feedback page does NOT change the displayed URL. 手动导航到“反馈”页面不会更改显示的URL。
NOTE : I'm using ionic 3.8.0 (latest) and ionic scripts 3.0.1 (latest) 注意 :我正在使用ionic 3.8.0(最新)和ionic脚本3.0.1(最新)
3.7.1
is not the latest. 不是最新的
3.7.1
。 You need to install 3.8.0 您需要安装3.8.0
It has number of fixes for the navigation related issues: 它具有一些与导航有关的问题的修复程序:
navigation: account for condition of toggling one view with tabs to another view with tabs (c963745)
导航:解决了将一个带有标签的视图切换到另一个带有标签的视图的情况(c963745)
navigation: add defaultHistory support to ion-tabs (2646ebe)
导航:向离子表添加defaultHistory支持(2646ebe)
navigation: unregister root navs when appropriate (2bd89fe)
导航:在适当时取消注册根导航(2bd89fe)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.