diff --git a/app-sample/src/main/AndroidManifest.xml b/app-sample/src/main/AndroidManifest.xml
index 82902900..0c265b10 100644
--- a/app-sample/src/main/AndroidManifest.xml
+++ b/app-sample/src/main/AndroidManifest.xml
@@ -42,8 +42,10 @@
android:host="noties.io"
android:scheme="https" />
-
-
+
+
+
+
diff --git a/docs/.vuepress/theme/NotFound.vue b/docs/.vuepress/theme/NotFound.vue
index 405807b3..02465515 100644
--- a/docs/.vuepress/theme/NotFound.vue
+++ b/docs/.vuepress/theme/NotFound.vue
@@ -5,8 +5,11 @@
Markwon Sample
Download
- sample app and open
- this link again
+ sample app and open
+ this link again or try local one (if you already have app installed):
+ {{ buildLocalDeeplink() }}
@@ -32,11 +35,16 @@ export default {
return msgs[Math.floor(Math.random() * msgs.length)];
},
isSampleLink() {
- const path = this.$router.currentRoute.path;
- return /^\/app\/(sample|search).*$/.test(path);
+ const path = window.location.href;
+ return /^.*\/app\/(sample|search).*$/.test(path);
},
currentWindowLocation() {
- return window.location.href
+ return window.location.href;
+ },
+ buildLocalDeeplink() {
+ const path = window.location.href;
+ const link = /.*\/app\/((?:sample|search).*)/.exec(path)[1];
+ return "markwon://" + link;
}
}
};