Skip to content

CSS, and Images break after connecting custom domain #21575

Discussion options

You must be logged in to vote

It looks like this is happening because your asset links still have the repository name hardcoded into the links:

<link rel="stylesheet" href="../Portfolio-Website-1.0/css/style.css">

You’ll need to remove /Portfolio-Website-1.0 from any asset links, like this:

<link rel="stylesheet" href="../css/style.css">

Once you’ve done that for any links to scripts, styles, or images then it should start working!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants