Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@angular/cli): prefix historyApiFallback.index with deployUrl #6279

Conversation

smoke
Copy link
Contributor

@smoke smoke commented May 11, 2017

when implementing i18n following https://angular.io/docs/ts/latest/cookbook/i18n.html
and https://medium.com/@feloy/deploying-an-i18n-angular-app-with-angular-cli-fc788f17e358

when running in development to be consistent with production I am using

ng serve --deploy-url /en/ --base-href /en/ \
--aot --locale en --i18n-file ./src/locale/messages.en.xlf

running the app this way, on routes other than http://localhost:4200/en/
the webpack-dev-server was always saying that the route is not found,
so this commit fixes that

@sumitarora
Copy link
Contributor

@smoke smoke force-pushed the ng-serve-set-proper-historyApiFallback-index-when-deployUrl-given branch 3 times, most recently from 0efc7e8 to 39a191a Compare May 11, 2017 17:59
@smoke smoke changed the title fix(serve): prefix historyApiFallback.index with deployUrl fix(@angular/cli): prefix historyApiFallback.index with deployUrl May 11, 2017
when implementing i18n following https://angular.io/docs/ts/latest/cookbook/i18n.html
and https://medium.com/@feloy/deploying-an-i18n-angular-app-with-angular-cli-fc788f17e358

when running in `development` to be consistent with `production` I am using

```
ng serve --deploy-url /en/ --base-href /en/ \
--aot --locale en --i18n-file ./src/locale/messages.en.xlf
```

running the app this way, on routes other than `http://localhost:4200/en/`
the `webpack-dev-server` was always saying that the route is not found,
so this commit fixes that
@smoke smoke force-pushed the ng-serve-set-proper-historyApiFallback-index-when-deployUrl-given branch from 39a191a to 8de8bc6 Compare May 11, 2017 20:02
@smoke
Copy link
Contributor Author

smoke commented May 12, 2017

@sumitarora Everything should be good now.

Copy link
Contributor

@filipesilva filipesilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense, thanks for fixing it 👍

@smoke smoke closed this May 12, 2017
@smoke smoke deleted the ng-serve-set-proper-historyApiFallback-index-when-deployUrl-given branch May 12, 2017 09:23
@smoke smoke restored the ng-serve-set-proper-historyApiFallback-index-when-deployUrl-given branch May 12, 2017 09:26
@filipesilva
Copy link
Contributor

@smoke this wasn't merged yet, it was just marked for a merge. Can you reopen the PR so we can merge it?

@smoke
Copy link
Contributor Author

smoke commented May 12, 2017

Reopening the PR as I accidentally closed it, sorry.

@smoke smoke reopened this May 12, 2017
@sumitarora sumitarora merged commit 0e1f65c into angular:master May 15, 2017
@smoke smoke deleted the ng-serve-set-proper-historyApiFallback-index-when-deployUrl-given branch May 15, 2017 15:34
sumitarora pushed a commit that referenced this pull request May 15, 2017
…#6279)

when implementing i18n following https://angular.io/docs/ts/latest/cookbook/i18n.html
and https://medium.com/@feloy/deploying-an-i18n-angular-app-with-angular-cli-fc788f17e358

when running in `development` to be consistent with `production` I am using

```
ng serve --deploy-url /en/ --base-href /en/ \
--aot --locale en --i18n-file ./src/locale/messages.en.xlf
```

running the app this way, on routes other than `http://localhost:4200/en/`
the `webpack-dev-server` was always saying that the route is not found,
so this commit fixes that
dond2clouds pushed a commit to d2clouds/speedray-cli that referenced this pull request Apr 23, 2018
…angular#6279)

when implementing i18n following https://angular.io/docs/ts/latest/cookbook/i18n.html
and https://medium.com/@feloy/deploying-an-i18n-angular-app-with-angular-cli-fc788f17e358

when running in `development` to be consistent with `production` I am using

```
ng serve --deploy-url /en/ --base-href /en/ \
--aot --locale en --i18n-file ./src/locale/messages.en.xlf
```

running the app this way, on routes other than `http://localhost:4200/en/`
the `webpack-dev-server` was always saying that the route is not found,
so this commit fixes that
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants