Configure default external-url as slash (#3655)

#### What type of PR is this?

/kind improvement
/area core

#### What this PR does / why we need it:

Configure default external-url as slash. So that system will generate relative links for all permalinks.

See https://github.com/halo-dev/halo/issues/3654 for more.

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/3654

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/3682/head
John Niang 2023-04-03 11:50:13 +08:00 committed by GitHub
parent ffeeaa231a
commit 36d50e75d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ spring:
max-age: 365d max-age: 365d
halo: halo:
external-url: "http://${server.address:localhost}:${server.port}" external-url: "/"
work-dir: ${user.home}/.halo2 work-dir: ${user.home}/.halo2
plugin: plugin:
plugins-root: ${halo.work-dir}/plugins plugins-root: ${halo.work-dir}/plugins

View File

@ -1,2 +1,2 @@
VITE_API_URL=http://localhost:8090 VITE_API_URL=
VITE_BASE_URL=/console/ VITE_BASE_URL=/console/