Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Web.URI: [RFC] Need a function to determine if a URL is absolute or relative

Open
#388 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
vim
Domain
tooling

Research direction

Start by locating the Web.URI implementation and reading the existing is_uri() and relative() behavior, then review the linked discussion for the intended distinction. Done means the API can reliably determine whether a supplied URI is absolute or relative and supports the reported absolute-URL case.

Written by the indexing model from the issue text.

Description

あと、相対パスなんですけど、
<a href="xxx"> これの xxx を渡せることを期待してたんですが、xxx が絶対 URL だとうまく動かない…
xxx が絶対 URI か相対 URI かを判断して .relative() を使うしかないかな
.is_uri() があるけど、絶対 URI も相対 URI も URI であることに変わりはないので、絶対 URI かどうかを判断する関数があると便利

http://lingr.com/room/vim/archives/2016/01/31#message-23002036

Dominant language
Vim Script
Stars
586
Forks
64
Avg merge
9h 24m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vim-jp/vital.vim

All issues in vim-jp/vital.vim

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.