Use absolute path in the archives link so it doesn't matter whether current url has trailing slash.