diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index b2e57f3d..f90aa0b4 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -14,7 +14,7 @@ todo: Need client to accept an open object url which directly opens a report So they would click on a link in an email and be taken to login and then directly to previewing the report URL: 404 - Object not found: "/viewreport/2/100/1" /viewreport/objecttype/:objectid/:reportid - http://localhost:8080/viewreport/1/1 + http://localhost:8080/viewreport?oid=100&rid=1 todo: export from grid to xls, csv etc. I'm thinking perhaps also a secondary ability to make report templates that are actually intended for export to xls or whatever as an additional feature diff --git a/ayanova/src/App.vue b/ayanova/src/App.vue index 804e8f96..bafe36df 100644 --- a/ayanova/src/App.vue +++ b/ayanova/src/App.vue @@ -365,7 +365,10 @@ export default { if (toPath != undefined) { vm.$router.push({ name: "login", - params: { topath: window.location.pathname } + params: { + topath: window.location.pathname, + search: window.location.search + } }); } else { vm.$router.push({ diff --git a/ayanova/src/views/login.vue b/ayanova/src/views/login.vue index 862f270d..b8ad4eea 100644 --- a/ayanova/src/views/login.vue +++ b/ayanova/src/views/login.vue @@ -336,6 +336,8 @@ export default { //trigger that to open in a new window and continue on to normal home page if (toPath.startsWith("/viewreport")) { (async function() { + var searchParams = new URLSearchParams(toPath); + debugger; await window.$gz.api.renderReport(1, 1); //objectid,reportid })(); vm.$router.push(vm.$store.state.homePage);