HugoFara / lwt

Learn languages by reading! A language learning app stemmed from Learning with Texts (LWT).
https://hugofara.github.io/lwt/
The Unlicense
164 stars 19 forks source link

Wrong media URI after choosing file from list #161

Closed PeterHero closed 7 months ago

PeterHero commented 7 months ago

Describe the bug After choosing a media file from list, URI with html/... is displayed.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'edit text'
  2. Click on 'file from media list under Media URI'
  3. Media URI is filled as 'html/media/[name]'
  4. Go to 'read text'
  5. media does not play
  6. change Media URI to 'media/[name]'
  7. Go to 'read text'
  8. media does play

Expected behavior Media URI should be set as media/[name]. As displayed on labels in list of media in media folder

Server (please complete)

LWT version v002008001 Web Server Apache/2.4.38 (Debian) Server Software Apache/2.4.38 Server Location localhost:8010 PHP Version 8.1.20

HugoFara commented 7 months ago

This is fixed, thank you for the hint!

The "refresh" button was also broken since 2.9.0, this is fixed as well.