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

[html] support for base url #20729

Closed
Nimzozo opened this issue Feb 16, 2017 · 1 comment
Closed

[html] support for base url #20729

Nimzozo opened this issue Feb 16, 2017 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug html HTML support issues verified Verification succeeded
Milestone

Comments

@Nimzozo
Copy link

Nimzozo commented Feb 16, 2017

  • VSCode Version: 1.9.1
  • OS Version: Windows 10

Steps to Reproduce:

  1. Create an HTML document.
  2. Add a <base> tag.
  3. Add a link with a relative URL.
  4. Try to follow the link with CTRL + Click.
<!DOCTYPE html>
<html lang="en">

<head>
    <title>Test</title>
    <meta charset="utf-8">
    <base href="../">
    <link rel="stylesheet" href="folder/file.css">

I'm not sure it's really a bug, maybe more a missing feature.

@aeschli aeschli changed the title Unable to follow a link of an HTML document with a <base> tag [html] support for base url Feb 20, 2017
@aeschli aeschli added this to the February 2017 milestone Feb 20, 2017
@aeschli aeschli added the bug Issue identified by VS Code Team member as probable bug label Feb 20, 2017
@Tyriar
Copy link
Member

Tyriar commented Feb 24, 2017

Given the following following layout:

image

Where t.html has the following content:

<head>
    <title>Test</title>
    <meta charset="utf-8">
    <base href="../">
    <link rel="stylesheet" href="t2.html">
</head>

ctrl+clicking the t2.html opens the file but also shows this error message:

image

Unable to open 't2.html': File not found (/home/daniel/playground/my-test-project/templates/views/t2.html).: Error: Unable to open 't2.html': File not found (/home/daniel/playground/my-test-project/templates/views/t2.html).
    at Object.g [as create] (file:////usr/share/code-insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:30:24752)
    at t.doHandleSetInputError (file:////usr/share/code-insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:134:18730)
    at file:////usr/share/code-insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:134:18424
    at Object.v [as _notify] (file:////usr/share/code-insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:32:11161)
    at Object.enter (file:////usr/share/code-insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:32:14666)
    at _run (file:////usr/share/code-insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:32:15987)
    at _chainedError (file:////usr/share/code-insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:32:15346)
    at n (file:////usr/share/code-insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:32:13169)
    at then (file:////usr/share/code-insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:32:16796)
    at Object.enter (file:////usr/share/code-insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:32:13238)

Build info:

  • VSCode Version: Code - Insiders 1.10.0-insider (0b27b52, 2017-02-23T07:08:55.971Z)
  • OS Version: Linux x64 4.8.0-34-generic, Ubuntu 16.10
  • Extensions:
Extension Author Version
EditorConfig EditorConfig 0.3.4
lorem-ipsum Tyriar 1.0.0
theme-glacier Tyriar 0.0.10
theme-sapphire Tyriar 0.0.5
vscode-terminal-here Tyriar 0.0.5
vscode-svgviewer cssho 1.3.1
tslint eg2 0.8.1
git-project-manager felipecaputo 1.0.1
vsc-travis-ci-status felixrieseberg 1.0.5
md-navigate jrieken 0.0.1
vscode-scss mrmlnc 0.6.1
csharp ms-vscode 1.7.0
seti-icons qinjia 0.1.3
annotator ryu1kn 0.10.1

@Tyriar Tyriar reopened this Feb 24, 2017
@Tyriar Tyriar added the verification-found Issue verification failed label Feb 24, 2017
@aeschli aeschli modified the milestones: March 2017, February 2017 Feb 24, 2017
@aeschli aeschli modified the milestones: April 2017, March 2017 Mar 27, 2017
@aeschli aeschli added the html HTML support issues label Apr 25, 2017
@jrieken jrieken added verified Verification succeeded and removed verification-found Issue verification failed labels Apr 26, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug html HTML support issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants