mirror of
https://github.com/discourse/discourse.git
synced 2025-02-02 08:06:31 +08:00
fa243484ca
What is the problem we are trying to solve here? The `/` path in our Ember app leads to the `discovery.index` route but we actually don't render anything on that route leading to a blank page if the Ember app were to transition to it which is what was happening when a user adds a custom sidebar section link with the `/` path. What is the fix there? Instead of generating a link for the `discovery.index` route when creating the sidebar section link, we detect if the Ember route is `discovery.index` and change it to the `discovery.${defaultHomepage()}` route instead. |
||
---|---|---|
.. | ||
admin | ||
bootstrap-json | ||
confirm-new-email | ||
deprecation-silencer | ||
dialog-holder | ||
discourse | ||
discourse-common | ||
discourse-hbr | ||
discourse-plugins | ||
discourse-widget-hbs | ||
docs | ||
ember-addons | ||
ember-cli-progress-ci | ||
ember-production-deprecations | ||
locales | ||
patches | ||
pretty-text | ||
select-kit | ||
truth-helpers | ||
wizard | ||
.licensee.json | ||
.npmrc | ||
handlebars-shim.js | ||
js-processor.js | ||
package.json | ||
polyfills.js | ||
run-patch-package | ||
service-worker.js.erb | ||
yarn.lock |