diff --git a/ayanova/src/App.vue b/ayanova/src/App.vue
index 85dcd50d..ca7bfc50 100644
--- a/ayanova/src/App.vue
+++ b/ayanova/src/App.vue
@@ -324,23 +324,23 @@ export default {
//this smells bad but it works
vm.$root.$gz = window.$gz;
- //Capture open object type and id if present
- //localhost:8080/login?type=2&id=22
+ // //Capture open object type and id if present
+ // //localhost:8080/login?type=2&id=22
- if (window.location.search) {
- //https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
- var searchParams = new URLSearchParams(window.location.search);
- var openObject = {};
- //data should be format for open-object-handler
- // { type: [AYATYPE], id: [RECORDID] }
- if (searchParams.has("type")) {
- openObject.type = Number(searchParams.get("type"));
- if (searchParams.has("id")) {
- openObject.id = Number(searchParams.get("id"));
- }
- window.$gz.store.commit("setOpenObject", openObject);
- }
- }
+ // if (window.location.search) {
+ // //https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
+ // var searchParams = new URLSearchParams(window.location.search);
+ // var openObject = {};
+ // //data should be format for open-object-handler
+ // // { type: [AYATYPE], id: [RECORDID] }
+ // if (searchParams.has("type")) {
+ // openObject.type = Number(searchParams.get("type"));
+ // if (searchParams.has("id")) {
+ // openObject.id = Number(searchParams.get("id"));
+ // }
+ // window.$gz.store.commit("setOpenObject", openObject);
+ // }
+ // }
//redirect to login if not authenticated
if (!vm.$store.state.authenticated) {
diff --git a/ayanova/src/api/open-object-handler.js b/ayanova/src/api/open-object-handler.js
index 5b3f7a0c..5da2dfd2 100644
--- a/ayanova/src/api/open-object-handler.js
+++ b/ayanova/src/api/open-object-handler.js
@@ -31,6 +31,8 @@ export default {
//NOTE: for new objects all edit pages assume record ID 0 means create rather than open
if (tid.type && tid.id != null) {
+ console.log("tid", tid);
+ console.log("ayatype", ayatype);
switch (tid.type) {
case ayatype.Widget:
vm.$router.push({
diff --git a/ayanova/src/router.js b/ayanova/src/router.js
index b1791797..c236da9d 100644
--- a/ayanova/src/router.js
+++ b/ayanova/src/router.js
@@ -428,6 +428,12 @@ export default new Router({
)
},
//**********************************GENERAL */
+ {
+ path: "/open/:ayatype/:recordid",
+ name: "ay-open",
+ component: () =>
+ import(/* webpackChunkName: "ay-common" */ "./views/ay-open.vue")
+ },
{
path: "/about",
name: "ay-about",
diff --git a/ayanova/src/views/ay-open.vue b/ayanova/src/views/ay-open.vue
new file mode 100644
index 00000000..25f4f99a
--- /dev/null
+++ b/ayanova/src/views/ay-open.vue
@@ -0,0 +1,22 @@
+
+ Opening...
+
+
+