Skip to content

VSCode LiaScript-Preview DevServer, opens URLs incorrectly #230

Open

Description

@Vad1mo

In VS Code, starting the dev Server, results in browser open, with the following url:

http://localhost:8000/liascript/index.html?http://localhost:8000/courses\course-explorer\hcp-explorer.md#1

While the couse itself works correctly the relative url don't resolve.

so

# course head section
icon: logo.svg
link: style.css

results in:

<img src="http://localhost:8000/logo.svg" class="lia_header__logo">

when opening the course correctly. e.g. navigating from http://localhost:8000/....

The final URL in the browser is:

http://localhost:8000/liascript/index.html?http://localhost:8000//courses/course-explorer/hcp-explorer.md#1

This resolvs the logo and css correctly.

<img src="http://localhost:8000//courses/hcp-explorer/logo.svg" class="lia_header__logo">

One minor issue remains (double slash) // but it has no effect.

Activity

  1. changed the title [-]LiaScript-Preview DevServer, opens URLs incorrect[/-] [+]VSCode LiaScript-Preview DevServer, opens URLs incorrectly[/+] on Jun 19, 2025
  2. andre-dietrich commented on Jun 19, 2025

    @andre-dietrich
    Member

    It seems you are the first one using sub-folder on Windows or Microsoft had changed the VSCode API ... However, the problem should be fixed with the new version ... hopefully ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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