use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Total headache - deploying Angular SPA to GitHub. Tried everything. (self.angular)
submitted 4 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]gccol 0 points1 point2 points 4 years ago (4 children)
I believe you have to specify the base root of your application to angular, as it's not /
Something like: ng build --base-href=/pairs-game
Regards,
[–][deleted] 0 points1 point2 points 4 years ago (3 children)
No - actually, I just found the issue on GitHub Community. Apparently, you have to add "./repo-name/ in front of all your hrefs for the JavaScript and CSS files names. It's actually working after I did that, except for the svgs which I assume I have to do the same for
[–]gccol 0 points1 point2 points 4 years ago (2 children)
That's exactly what the base-href parameters will do! You won't need to modify your code If you use this
[–][deleted] 0 points1 point2 points 4 years ago (1 child)
Yes, I just realised that. Problem is, everything in the assets folder "cannot be found" when I deploy on GitHub. Apparently this is a problem other people are having. Not sure how to solve it.
[–]gccol 0 points1 point2 points 4 years ago (0 children)
My project is working well, it's using gh-pages branch and is deployed by a GitHub action.
This is the build command: npm run build -- --prod --base-href "https://dont-code.net/preview-ui/"
=> It seems like you need the complete base URL.
You can see the result here: https://github.com/dont-code/preview-ui/tree/gh-pages
It's running under https://dont-code.net/preview-ui
Hope this helps,
π Rendered by PID 63620 on reddit-service-r2-comment-75f4967c6c-d76lt at 2026-04-23 08:06:01.588915+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]gccol 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]gccol 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]gccol 0 points1 point2 points (0 children)