diff --git a/login/index.js b/login/index.js
index 738966f..ddd8137 100644
--- a/login/index.js
+++ b/login/index.js
@@ -32,7 +32,7 @@ dotenv.config({ path: './.env' });
const portier = new PortierClient({
//broker: process.env.PORTIER_URL,
- redirectUri: 'https://flylocal.us' + "/login/verify",
+ redirectUri: 'https://iflylocal.com' + "/login/verify",
});
@@ -248,7 +248,7 @@ app.post("/verify", formParser, (req, res) => {
portier.verify(req.body.id_token).then((email) => {
- const redirectButton = (req.query.redirect && typeof req.query.redirect !== 'undefined') ? `back to your flight` : `back to the map`;
+ const redirectButton = (req.query.redirect && typeof req.query.redirect !== 'undefined') ? `back to your flight` : `back to the map`;
// needed to string .cookie and .type together
res.cookie('email', email,
diff --git a/nuxt.config.js b/nuxt.config.js
index 20f102f..121c390 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -27,16 +27,16 @@ export default {
{ name: 'format-detection', content: 'telephone=no' },
{ itemprop: 'name', content: 'Small Planes, Big Experiences' },
{ itemprop: 'description', content: 'FlyLocal is the best way to find local airlines that fly throughout the great state of Alaska. Explore the \'Last Frontier\' with FlyLocal.' },
- { itemprop: 'image', content: 'https://flylocal.us' + '/screenshot.png' },
- { property: 'og:url', content: 'https://flylocal.us' },
+ { itemprop: 'image', content: 'https://iflylocal.com' + '/screenshot.png' },
+ { property: 'og:url', content: 'https://iflylocal.com' },
{ property: 'og:type', content: 'website' },
{ property: 'og:title', content: 'Small Planes, Big Experiences' },
{ property: 'og:description', content: 'FlyLocal is the best way to find local airlines that fly throughout the great state of Alaska. Explore the \'Last Frontier\' with FlyLocal.' },
- { property: 'og:image', content: 'https://flylocal.us' + '/screenshot.png' },
+ { property: 'og:image', content: 'https://iflylocal.com' + '/screenshot.png' },
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:title', content: 'Small Planes, Big Experiences' },
{ name: 'twitter:description', content: 'FlyLocal is the best way to find local airlines that fly throughout the great state of Alaska. Explore the \'Last Frontier\' with FlyLocal.' },
- { name: 'twitter:image', content: 'https://flylocal.us' + '/screenshot.png' }
+ { name: 'twitter:image', content: 'https://iflylocal.com' + '/screenshot.png' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
diff --git a/pages/dates.vue b/pages/dates.vue
index 3cb51bb..9787c9b 100644
--- a/pages/dates.vue
+++ b/pages/dates.vue
@@ -93,7 +93,7 @@ export default {
}
},
mounted () {
- this.$segment.page('dates');
+ //this.$segment.page('dates');
this.$segment.track('dates__mount-page', {
origin: this.$route.params.o,
destination: this.$route.params.d
diff --git a/pages/flights.vue b/pages/flights.vue
index b44be1f..eca52b0 100644
--- a/pages/flights.vue
+++ b/pages/flights.vue
@@ -371,7 +371,7 @@ export default {
this.schedules = [...data.records]
},
mounted () {
- this.$segment.page('flights');
+ //this.$segment.page('flights');
this.$segment.track('flights__mount-page', {
origin: this.$route.params.o,
destination: this.$route.params.d,
diff --git a/pages/go.vue b/pages/go.vue
index 3f9d06b..c72fc46 100644
--- a/pages/go.vue
+++ b/pages/go.vue
@@ -238,8 +238,11 @@ export default {
},
mounted () {
- this.$segment.page('go');
-
+ //this.$segment.page('go');
+ this.$segment.track('go__mount-page', {
+ origin: this.$route.params.o,
+ destination: this.$route.params.d
+ });
const emailCookie = this.$cookies.get('email')
if(emailCookie){
this.$segment.identify(emailCookie, {
diff --git a/plugins/env.js b/plugins/env.js
index f3a3c14..8dfaa1a 100644
--- a/plugins/env.js
+++ b/plugins/env.js
@@ -1,5 +1,5 @@
export default ({ app }, inject) => {
// Inject $hello(msg) in Vue, context and store.
- inject('BASE_URL', () => 'https://flylocal.us')
+ inject('BASE_URL', () => 'https://iflylocal.com')
inject('hello', msg => console.log(`Hello ${msg}!`))
}