discourse/app/assets/javascripts/discourse
Osama Sayegh f6282145aa
FIX: Treat contact_url setting as a domain by default (#30225)
This commit makes the `contact_url` in the /about page behave as an absolute URL instead of a relative one if it doesn't explicitly start with a slash or a protocol. This prevents situation where, e.g., `www.example.com` is specified in the setting and the contact URL anchor tag ends up with a `href` that navigates to `<site address>/www.example.com` instead of just `www.example.com`. We prevent this by adding 2 leading slashes `//` to `contact_url` which makes the `href` resolves to the specified `contact_url` using the same protocol as the current site's.

Internal topic: t/143907.
2024-12-23 07:54:53 +03:00
..
app FIX: Treat contact_url setting as a domain by default (#30225) 2024-12-23 07:54:53 +03:00
config DEV: Disable Ember's LOG_STACKTRACE_ON_DEPRECATION (#30275) 2024-12-13 17:56:11 +00:00
lib DEV: Bump @discourse/lint-configs and autofix (#29847) 2024-11-20 14:15:04 +00:00
public/assets/scripts
scripts DEV: Bump eslint, lint-configs, and move to flat config (#29661) 2024-11-12 12:33:17 +00:00
tests FIX: Treat contact_url setting as a domain by default (#30225) 2024-12-23 07:54:53 +03:00
.ember-cli
.npmrc
.watchmanconfig
ember-cli-build.js DEV: Upgrade dependencies to Ember 5.12 (#30131) 2024-12-11 11:09:25 -03:00
package.json Build(deps): Bump ace-builds from 1.37.0 to 1.37.1 (#30420) 2024-12-22 22:59:10 +01:00
testem.js DEV: prevents chrome to ask for fav search engine (#28192) 2024-08-01 15:49:07 +02:00