logseq / logseq/logseq

iframe is not working when src set with relative path

Open
#5,666 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:type/enhancement
Dominant language
Clojure
Stars
45k
Forks
2.8k
Avg merge
1d 22h
Merged PRs (30d)
105

Description

### What happened?

iframe is not working when src set with relative path

Full path - working:

Relative path - Not working:

### Reproduce the Bug

1. Add html file in assets "SomePage.html"
2. Add iframe in journal or in a regular page

3. iframe is empty

### Expected Behavior

iframe should display SomePage.html content

### Screenshots

_No response_

### Desktop Platform Information

Win 10; Version 0.7.3

### Mobile Platform Information

_No response_

### Additional Context

_No response_

Contributor guide

Open the contributing guide

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.

Research direction

Reproduce the issue on Windows 10 with version 0.7.3 by placing SomePage.html in assets and embedding it from a journal or regular page using the relative iframe path. Compare the relative-path result with the working full path, and consider the issue done when SomePage.html content displays in the iframe.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.