Skip to content

Fix the /paths from absolute to relative in HTML #5

Open
@arm4b

Description

@arm4b

If someone tries to clone the repo and work with it as GH static pages or local preview the website might not render properly if served from the subdir, missing the images, js, and, css (404). That's because the static content is served based on / absolute path instead of relative.

Someone needs to go through the pages and fix the paths to static content so it works properly even if the website is served from the subdirectory like github-static-pages.com/stackstorm.com/.

Example https://github.com/StackStorm/stackstorm.com/blob/main/index.html:

-	<link rel="stylesheet" id="dashicons-css" href="/wp/wp-includes/css/dashicons.min.css?ver=09e48cfb58fec140b4ee0c6d1d4da1b2" type="text/css" media="all">
+	<link rel="stylesheet" id="dashicons-css" href="wp/wp-includes/css/dashicons.min.css?ver=09e48cfb58fec140b4ee0c6d1d4da1b2" type="text/css" media="all">

Keep in mind the paths for stackstorm.com vs https://stackstorm.com/2022/05/10/stackstorm-3-7-0-released/ pages mgiht need different modifications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions