3 lines
206 B
JavaScript
3 lines
206 B
JavaScript
const map = { home: '/', about: '/about/', news: '/news/', join: '/join/', privacy: '/privacy/', community: '/community/' };
|
|
const target = map[location.hash.slice(1)];
|
|
if (target) location.replace(target); |