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

<audio> source paths break, depending on whether URL ends in an / #190

Open
Nekkowe opened this issue Nov 4, 2024 · 0 comments
Open

<audio> source paths break, depending on whether URL ends in an / #190

Nekkowe opened this issue Nov 4, 2024 · 0 comments

Comments

@Nekkowe
Copy link

Nekkowe commented Nov 4, 2024

These two links point to the same page:

  1. https://nekkowe.com/blog/posts/guilty-gear-strive-umineko-sound-mods/#1-umineko-clash-wall-break
  2. https://nekkowe.com/blog/posts/guilty-gear-strive-umineko-sound-mods#1-umineko-clash-wall-break

However, the audio players only work for the first one:

image

But not the second (note the 0:00 length):

image

image

It appears that with the first link, the tag gets assigned the proper URL for the sound file:
https://nekkowe.com/blog/posts/guilty-gear-strive-umineko-sound-mods/SE_BTL_CMN_Wall_BoxJump.ogg
but with the second link, the tag instead winds up with this broken URL that assumes the file is located one directory higher:
https://nekkowe.com/blog/posts/SE_BTL_CMN_Wall_BoxJump.ogg

I'm not sure what's going on here. Ideally, the src URLs of <audio> tags etc. should probably become absolute URLs in the final HTML, as URLs for <img> tags already do.

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