Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base url does not work for anchor tags on build #3194

Open
1 task done
Lea-Reif opened this issue Jan 4, 2024 · 0 comments
Open
1 task done

Base url does not work for anchor tags on build #3194

Lea-Reif opened this issue Jan 4, 2024 · 0 comments

Comments

@Lea-Reif
Copy link

Lea-Reif commented Jan 4, 2024

  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

  1. Add the base property in config.js
  2. Build the docs

What is expected?

The links should use the base config as base url

What is actually happening?

The anchor tags are prepended by a / in all href's and protocol slashes https:// are compiled as http:/ (just one slash)

Other relevant information

Link (Style) and script tags have the correct base_url

  • Output of npx vuepress info in my VuePress project:
Environment Info:

  System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz
  Binaries:
    Node: 18.8.0 - C:\laragon\bin\nodejs\node-v18\node.EXE
    Yarn: Not Found
    npm: 9.4.2 - C:\laragon\bin\nodejs\node-v18\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Chromium (120.0.2210.91)
  npmPackages:
    @vuepress/core:  1.9.10
    @vuepress/theme-default:  1.9.10
    vuepress: ^1.5.3 => 1.9.10
  npmGlobalPackages:
    vuepress: Not Found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant