discourse/app/assets/javascripts
Alan Guo Xiang Tan fa243484ca
FIX: Custom sidebar section link with / path leading to blank page (#23661)
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.
2023-09-26 15:14:13 +08:00
..
admin Build(deps-dev): Bump the babel group (#23657) 2023-09-26 02:34:33 +02:00
bootstrap-json DEV: Make index.html a valid html (#23289) 2023-08-28 14:44:38 +02:00
confirm-new-email DEV: Add error message styling (#21225) 2023-04-25 08:40:18 -04:00
deprecation-silencer DEV: move deprecation silencer to a shared package (#22668) 2023-07-18 19:07:20 +01:00
dialog-holder DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
discourse FIX: Custom sidebar section link with / path leading to blank page (#23661) 2023-09-26 15:14:13 +08:00
discourse-common Build(deps-dev): Bump the babel group (#23657) 2023-09-26 02:34:33 +02:00
discourse-hbr Build(deps-dev): Bump the babel group (#23657) 2023-09-26 02:34:33 +02:00
discourse-plugins Build(deps-dev): Bump the babel group (#23657) 2023-09-26 02:34:33 +02:00
discourse-widget-hbs Build(deps-dev): Bump the babel group (#23657) 2023-09-26 02:34:33 +02:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations DEV: Clean up package.json files (#22349) 2023-06-30 13:01:45 +02:00
locales DEV: Raise an error in test env when I18n interpolate argument is missing (#23527) 2023-09-13 10:53:48 +08:00
patches DEV: introduce Embroider behind a flag, and start testing in CI (#23005) 2023-09-07 13:15:43 +01:00
pretty-text Build(deps-dev): Bump the babel group (#23657) 2023-09-26 02:34:33 +02:00
select-kit Build(deps-dev): Bump the babel group (#23657) 2023-09-26 02:34:33 +02:00
truth-helpers Build(deps-dev): Bump the babel group (#23657) 2023-09-26 02:34:33 +02:00
wizard DEV: Cleanup unused wizard illustrations (#23659) 2023-09-26 10:34:38 +08:00
.licensee.json DEV: Update sub-dependencies (#22325) 2023-06-29 17:08:33 +02:00
.npmrc
handlebars-shim.js
js-processor.js DEV: Enable ember-this-fallback in themes (#23384) 2023-09-05 11:16:12 +02:00
package.json DEV: Automatically retry patch-package on failure (#23583) 2023-09-14 12:25:06 +01:00
polyfills.js
run-patch-package DEV: Automatically retry patch-package on failure (#23583) 2023-09-14 12:25:06 +01:00
service-worker.js.erb FIX: Ensure service-worker cache is cleaned correctly (#23204) 2023-08-23 13:58:32 +01:00
yarn.lock Build(deps-dev): Bump sass from 1.66.1 to 1.68.0 in /app/assets/javascripts (#23638) 2023-09-26 10:41:35 +08:00