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

fix: remove <base /> #674

Closed
wants to merge 2 commits into from
Closed

Conversation

Aslemammad
Copy link
Contributor

Resolves #649

Copy link

vercel bot commented Apr 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
waku ✅ Ready (Inspect) Visit Preview Apr 26, 2024 5:25pm

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@@ -75,9 +75,6 @@ ${opts.htmlHead}
},
transformIndexHtml() {
return [
// HACK without <base>, some relative assets don't work.
Copy link
Owner

Choose a reason for hiding this comment

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

Do you know what was the original problem?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No honestly, but what I guess was the potential solution was the fact the we made things either absolute to the project root or to the user's root.

Copy link
Owner

Choose a reason for hiding this comment

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

Let me check:

image

Now, let's try this branch:

same error

image

So, no, it's not fixed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will check this soon!

Copy link
Contributor

Choose a reason for hiding this comment

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

I did some research and might figure out the root case. I am not so sure can i open another pr to solve this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@PerfectPan For sure! feel free to, i'd be happy to close this if that solves it.

@dai-shi
Copy link
Owner

dai-shi commented May 5, 2024

Superseded by #697.

@dai-shi dai-shi closed this May 5, 2024
dai-shi pushed a commit that referenced this pull request May 5, 2024
…root path (#697)

Solve #649.

I did some research based on #674.
The root cause is that css path in html missing / so that when brower
try to join the real path, it will use the current path instead of root
path.

![CleanShot 2024-05-05 at 00 44
55@2x](https://github.com/dai-shi/waku/assets/24316656/55ac214d-b5c9-49ed-9e67-95b59ed837b8)

![CleanShot 2024-05-05 at 00 45
27@2x](https://github.com/dai-shi/waku/assets/24316656/40021aeb-acbe-4f07-ac9f-79e9d7ebaa2a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: wrong anchor link in the website
3 participants