import Vue from 'vue'
import Router from 'vue-router'
import Hackmap from '@/components/Hackmap'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'lastest',
      component: Hackmap
    },
    {
      path: '/:issueNumber',
      name: 'history',
      component: Hackmap,
      props: true
    }
  ]
})

import Vue from 'vue'
import Router from 'vue-router'
import Hackmap from '@/components/Hackmap'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: window.location.pathname,
  routes: [
    {
      path: '',
      name: 'lastest',
      component: Hackmap
    },
    {
      path: ':issueNumber',
      name: 'history',
      component: Hackmap,
      props: true
    }
  ]
})

add pathname base to router config