Skip to content

Do not redirect index.html to / #13729

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

Merged
merged 1 commit into from
Oct 11, 2022
Merged

Do not redirect index.html to / #13729

merged 1 commit into from
Oct 11, 2022

Conversation

jeanp413
Copy link
Member

@jeanp413 jeanp413 commented Oct 10, 2022

Description

Do not redirect index.html to /

Related issues

How to test

  1. Open workspace
  2. Test webviews work
  3. There's no redirection from out/vs/workbench/contrib/webview/browser/pre/index.html to out/vs/workbench/contrib/webview/browser/pre/

Release Notes

NONE

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-jp-fix-redirect.1 because the annotations in the pull request description changed
(with .werft/ from main)

@jeanp413 jeanp413 force-pushed the jp/fix-redirect branch 3 times, most recently from b7a304a to faad99e Compare October 10, 2022 22:28
@jeanp413 jeanp413 marked this pull request as ready for review October 10, 2022 22:31
@jeanp413 jeanp413 requested a review from a team October 10, 2022 22:31
Copy link
Contributor

@mustard-mh mustard-mh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, going to test it

@mustard-mh
Copy link
Contributor

2nd request (see before image) has gone and webView/VSCode works well

Before After
image (7) image

@filiptronicek
Copy link
Member

filiptronicek commented Oct 11, 2022

question (non-blocking): @jeanp413 so this means that in the case for @mustard-mh (see first screenshot), the experience should be smoother? Should it be 239ms faster to open? 👀

if resourcePath == "/" {
resourcePath = "/index.html"
}
if strings.HasSuffix(resourcePath, "index.html") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[non-block] aindex.html is included, but it's fine

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/hold if you want to change it

@mustard-mh
Copy link
Contributor

mustard-mh commented Oct 11, 2022

question (non-blocking): jeanp413 so this means that in the case for @mustard-mh (see first screenshot), the experience should be smoother? Should it be 239ms faster to open? 👀

@filiptronicek Yes, it can remove one useless request

@jeanp413
Copy link
Member Author

/unhold

@roboquat roboquat merged commit 31d8a79 into main Oct 11, 2022
@roboquat roboquat deleted the jp/fix-redirect branch October 11, 2022 15:30
@roboquat roboquat added deployed: IDE IDE change is running in production deployed Change is completely running in production labels Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: IDE IDE change is running in production deployed Change is completely running in production release-note-none size/M team: IDE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants