On one of the sites I work on, I used to have a NavLink set as /community/
and I had a redirect file setup as such:
/community https://community.website.com
And the redirect worked just fine even though I never setup the subdomain. So whenever the NavLink was clicked you would be redirect to a nonexistent domain. Now I have setup the site but it is under a different subdomain so I changed the NavLink to /support/
and the redirect file to:
/support https://support.website.com
But when I click the NavLink it takes me to the actual page website.com/support
which shows the VuePress 404 page since there is no such page rendered. But the confusing part is if I refresh the page it redirects me immediately like it should of in the first place. And to add to that if I revert everything back to community and the old subdomain the redirect works correctly (Takes you to community.website.com
).
I am at a lose here on what is causing this as well as whether it is a Netlify or VuePress issue. Any help or insight would be greatly appreciated.