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

Report URL opened from MTA extension breaks CSS/JS URLs #684

Open
dfuenzalida opened this issue May 5, 2022 · 0 comments
Open

Report URL opened from MTA extension breaks CSS/JS URLs #684

dfuenzalida opened this issue May 5, 2022 · 0 comments

Comments

@dfuenzalida
Copy link

dfuenzalida commented May 5, 2022

  • OS: Windows 10 21H1
  • Java version: OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
  • VSCode Version: 1.67
    • Node.js: 16.13.0
  • Extension version: Migration Toolkit for Applications v0.0.98 (preview)
  • Browsers:
    • Microsoft Edge 101.0.1210.32 (Official build) (64-bit)
    • Google Chrome 100.0.4896.127 (Official Build) (64-bit)

I tried the extension today and I was able to see the issues reported inside VSCode for a sample application, but when opening the report from VSCode it looks broken because the CSS/JS are not found, as in the screenshot below:

Opening the report in VSCode:

image

Website open in Edge (with the Developer Tools panel enabled):

image

The following URLs were broken (HTTP 404):

Likely cause

The problem seems to be that there is a / encoded in the URL used to open the report. The extension tries to open the address http://localhost:61435/54fkx96i7-lqqqufhqb%5Cindex.html but it should be http://localhost:61435/54fkx96i7-lqqqufhqb/index.html instead (note the %5C is the / encoded). This encoded character causes the paths to all the CSS/JS resources to be computed as relative to the root of the web address, instead of relative to the folder (54fkx96i7-lqqqufhqb in this case).

When the correct URL is used, the report works correctly:

image

The correct location of the resources have the unique identifier in them, like this:

@dfuenzalida dfuenzalida changed the title Report URL used in VSCode extension breaks CSS/JS URLs Report URL opened from MTA extension breaks CSS/JS URLs May 5, 2022
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