Skip to content

Cannot fetch with relative paths #1985

@SOF3

Description

@SOF3

Problem

fetch::Request cannot be constructed to write relative paths.

Steps To Reproduce
Steps to reproduce the behavior:

Call yew::services::fetch::Request::get("foo/bar")

Actual behaviour
Returns error: http::Error(InvalidUri(InvalidFormat))

Expected behavior
Construct a request that fetches ./foo/bar

Environment:

  • Yew version: v0.18.0
  • Rust version: nightly-2021-08-01
  • Target, if relevant: wasm32-unknown-unknown
  • Build tool, if relevant: trunk
  • OS, if relevant: linux ubuntu
  • Browser and version, if relevant: firefox 90.0

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-yewArea: The main yew cratebug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions