title: The hash value of the URL in Nuxt.js
body: <p>The router mode is "history", and I want to  valid each request in the middleware which will redirect the request to a given page when the request is invalid. In my case, the request that does not exist in the white_path will be redirect to '/500':</p>
  
  <pre><code>export default function (context) {
      const white_path = new Array('/login', '/404', '/500')
      const cur_path = context.route.path
      if(white_path.indexOf(cur_path) &lt; 0){
          context.redirect(301, '/500')
      }
  }
  </code></pre>
  
  <p>But the problem is that when I input the url: <strong><em><a href="http://localhost:3000/blog/SampleTitle/#first-paragraph" rel="nofollow noreferrer">http://localhost:3000/blog/SampleTitle/#first-paragraph</a></em></strong>, but then it redirects to <strong><em><a href="http://localhost:3000/500#first-paragraph" rel="nofollow noreferrer">http://localhost:3000/500#first-paragraph</a></em></strong>. <strong>Why the hash value does not disappear?</strong> In the middleware, the hash value is empty, but after redirect to the client,  the hash value becomes the one appear in the last url. </p>
  
  <p>How can I solve it? Thank your very much!</p>