Skip to content

github pages deploy create wrong base href for repos with camelcase names #3146

Closed

Description

@aj8k

Ubuntu 16.04
angular-cli: 1.0.0-beta.19-3

  1. Create repo with name like this: someRepo
  2. ng github-pages:deploy
  3. Base href will be /some-repo, not /someRepo as was expected.

Activity

  1. added
    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
    on Nov 21, 2016
  2. rolyatsats commented on Dec 1, 2016

    @rolyatsats
    Contributor

    The ng github-pages:deploy command derives baseHref from packageName, which is pulled from package.json.

    package.json is created through ember-cli/lib/models/blueprint.js which uses the normalizeEntityName function to dasherize as they call it.

    There must be a way to override the normalizeEntityName function to support camelCase.

  3. WebDesignerKits commented on Dec 28, 2016

    @WebDesignerKits

    This also creates a problem for github pages that use custom domains.

    In which case the base href needs to default back to just "/" and no longer the name of the repo, or "/some-repo".

    Because unlike the github page, which serves content from: some-account.github.io/some-repo
    A custom domain no longer has the extra file path ie, not this: myWebsite.com/some-repo

    Instead it servers from myWebsite.com, and so it needs a "/" base href.

    Right now the solution is: ng github-pages:deploy --base-href /

  4. filipesilva commented on Feb 3, 2017

    @filipesilva
    Contributor

    Closed via #4385.

  5. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  6. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenttype: bug/fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions