Giter Site home page Giter Site logo

Comments (8)

wackerow avatar wackerow commented on June 1, 2024 1

A patch was put up for this, but it appears there is still a bug with it:

// Inside /src/lib/utils/editPath.ts, we return:

join(EDIT_CONTENT_URL, CONTENT_DIR, relativePath, "index.md")

EDIT_CONTENT_URL has https:// at the beginning of it... we cannot pass this to join() because that function will collapse repeating slashes (/) down to only one, as it's forming a path.

We should use construct a URL with new URL(path, base) instead and return the href value from the resulting object, passing join(CONTENT_DIR, relativePath, "index.md") as the path argument, and EDIT_CONTENT_URL as the base... this will properly parse these into a URL.

ie. (new URL(join(CONTENT_DIR, relativePath, "index.md"), EDIT_CONTENT_URL)).href

@HiroyukiNaito Assigning you for this =)

from ethereum-org-website.

tutizaraz avatar tutizaraz commented on June 1, 2024

It seems that this has already been fixed but not deployed to production

from ethereum-org-website.

HiroyukiNaito avatar HiroyukiNaito commented on June 1, 2024

If it is not fixed, I would like to work on the issue.

from ethereum-org-website.

HiroyukiNaito avatar HiroyukiNaito commented on June 1, 2024

@wackerow
Is it fixed? If not, I doubt it is caused only by SSG. Is there any way to build same as ethereum.org SSG for locating the cause?

from ethereum-org-website.

HiroyukiNaito avatar HiroyukiNaito commented on June 1, 2024

@wackerow Thanks for the tips! I work on it.

from ethereum-org-website.

wackerow avatar wackerow commented on June 1, 2024

Hey @HiroyukiNaito! Thanks for offering to patch this... Just want to mention that this bug is somewhat important since it's breaking all the edit links in the docs. We were hoping to get this patched ASAP...

Any chance you're able to make this patch in the next few hours? Otherwise I may put up a patch so we can hot-fix the deploy planned for later today. Sorry for the time crunch ๐Ÿ™

from ethereum-org-website.

wackerow avatar wackerow commented on June 1, 2024

Hey @HiroyukiNaito, apologies for jumping in on this, but given the nature of this bug we wanted to get a patch up for this ASAP... I put up a PR to fix, but thank you for offering to help!

from ethereum-org-website.

HiroyukiNaito avatar HiroyukiNaito commented on June 1, 2024

@wackerow Sure, thanks for notifying that!

from ethereum-org-website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.