Giter Site home page Giter Site logo

Use relative URLs about airsonic-refix HOT 3 OPEN

tamland avatar tamland commented on July 17, 2024
Use relative URLs

from airsonic-refix.

Comments (3)

gjedeer avatar gjedeer commented on July 17, 2024

I just executed the following in the docker container and visiting index2.html works okay and plays music - even though the code is in a subdirectory.

/var/www/html # sed -e 's#"/#"#g' <index.html >index2.html

The resulting index2.html file is:

<!DOCTYPE html><html lang="en"><head data-build="80a2f4b186594fb156a3e69906554ddc54e03930"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; connect-src *; img-src *; media-src *; manifest-src 'self'; style-src 'self' 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' 'sha256-624gmqlO23N0g1Ru4tkjuaPEoL/hXP4w7tUqel4WM98=' 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' 'sha256-5uOIRR03mYcVoiexgzGGALQ0p1Babe2XxbeIl9t1UpA=' 'sha256-lM8P08IzH0mbT5Tvlm1F5BY3h0gPsb0qNpnZW9YHc7A='; script-src 'self'; base-uri 'self';"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000"><link rel="icon" href="icon.svg"><link rel="manifest" href="manifest.webmanifest"><script src="env.js"></script><title>Airsonic (refix)</title><link href="css/app.193c0949.css" rel="preload" as="style"><link href="css/chunk-vendors.66cdc8be.css" rel="preload" as="style"><link href="js/app.ac9269bb.js" rel="preload" as="script"><link href="js/chunk-vendors.7e50d4ad.js" rel="preload" as="script"><link href="css/chunk-vendors.66cdc8be.css" rel="stylesheet"><link href="css/app.193c0949.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but this application doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="js/chunk-vendors.7e50d4ad.js"></script><script src="js/app.ac9269bb.js"></script></body></html>

from airsonic-refix.

gjedeer avatar gjedeer commented on July 17, 2024

It looks like the pseudo-URLs generated with the History API would need some adjustment too, as they're generated in a root directory of the server.

from airsonic-refix.

tamland avatar tamland commented on July 17, 2024

You will need to build the application with the base path to make this fully work. See #30

from airsonic-refix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.