Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

base path cause script and css path error! #1792

@bookyo

Description

@bookyo

if url have chinese, the base path will wrong, and base path wrong cause every css and script wrong.

my url: http://127.0.0.1:3000/category/%E7%88%B1%E6%83%85
79DB62DA-F1D4-4E2F-9308-455AD5676A23

check page source:
4D0343F0-7CE5-435F-92F2-36D7487B9310

my package.json:

"dependencies": {
    "axios": "^0.21.1",
    "body-parser": "^1.19.0",
    "compression": "^1.7.1",
    "connect-redis": "^5.0.0",
    "crypto": "^1.0.1",
    "dayjs": "^1.10.1",
    "express-session": "^1.17.1",
    "form-data": "^4.0.0",
    "multer": "^1.4.2",
    "perfect-scrollbar": "^1.5.0",
    "plyr": "^3.6.4",
    "polka": "next",
    "rate-limiter-flexible": "^2.2.1",
    "redis": "^3.0.2",
    "sirv": "^1.0.0",
    "ua-parser-js": "^0.7.28"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0",
    "@babel/plugin-syntax-dynamic-import": "^7.0.0",
    "@babel/plugin-transform-runtime": "^7.0.0",
    "@babel/preset-env": "^7.0.0",
    "@babel/runtime": "^7.0.0",
    "@beyonk/svelte-carousel": "^2.8.0",
    "@rollup/plugin-babel": "^5.0.0",
    "@rollup/plugin-commonjs": "^14.0.0",
    "@rollup/plugin-node-resolve": "^8.0.0",
    "@rollup/plugin-replace": "^2.2.0",
    "@rollup/plugin-url": "^5.0.0",
    "@zerodevx/svelte-toast": "^0.1.4",
    "rollup": "^2.3.4",
    "rollup-plugin-svelte": "^7.0.0",
    "rollup-plugin-terser": "^7.0.0",
    "sapper": "^0.28.10",
    "svelte": "^3.24.3",
    "svelte-lazy": "^1.0.10",
    "sveltestrap": "^4.2.1"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions