Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
virtual-designer authored Aug 28, 2024
2 parents 05cdc1a + 1cd606e commit 1e6cde3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 20 deletions.
32 changes: 18 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,52 @@
## [1.4.3](https://github.com/onesoft-sudo/sudobot-dashboard/compare/v1.4.2...v1.4.3) (2024-08-28)
## [1.5.2](https://github.com/onesoft-sudo/sudobot-dashboard/compare/v1.5.1...v1.5.2) (2024-08-28)


### Bug Fixes

* query params are not being rewritten ([c60b994](https://github.com/onesoft-sudo/sudobot-dashboard/commit/c60b99419c26962f41911b98c22fd3c9ff0fe826))
* broken link renders ([c2432d0](https://github.com/onesoft-sudo/sudobot-dashboard/commit/c2432d07ca1c7d289cee8e08facf7e931f8e4e84))
* type errors ([3aaeec8](https://github.com/onesoft-sudo/sudobot-dashboard/commit/3aaeec8159e79a1377519bb1376b675673e3c4bf))



## [1.4.2](https://github.com/onesoft-sudo/sudobot-dashboard/compare/v1.4.1...v1.4.2) (2024-08-28)
## [1.5.1](https://github.com/onesoft-sudo/sudobot-dashboard/compare/v1.5.0...v1.5.1) (2024-08-28)


### Bug Fixes

* 400 errors ([3f8cd2f](https://github.com/onesoft-sudo/sudobot-dashboard/commit/3f8cd2f0dc82d4ea889bf640741616151083f423))
* type errors ([9475a29](https://github.com/onesoft-sudo/sudobot-dashboard/commit/9475a2945c7c8186e9136d12243ca14a20f23413))
* update sentry project name ([f686202](https://github.com/onesoft-sudo/sudobot-dashboard/commit/f686202676e73ab2132c3e9418153d1964018274))



## [1.4.1](https://github.com/onesoft-sudo/sudobot-dashboard/compare/v1.4.0...v1.4.1) (2024-08-28)
# [1.5.0](https://github.com/onesoft-sudo/sudobot-dashboard/compare/v1.4.3...v1.5.0) (2024-08-28)


### Bug Fixes

* 400 errors on subdomainds in production ([a754e00](https://github.com/onesoft-sudo/sudobot-dashboard/commit/a754e007776773c0767634a7612c4b1d8fd13fd3))
* better error messages ([c1636f1](https://github.com/onesoft-sudo/sudobot-dashboard/commit/c1636f178f1d09655f69772af44ce49be74cb556))
* sentry errors ([748597d](https://github.com/onesoft-sudo/sudobot-dashboard/commit/748597d28f1383e9ea8daf0f3fc482eeb9086ef7))


### Features

* support page ([ea90d45](https://github.com/onesoft-sudo/sudobot-dashboard/commit/ea90d45fd41f9f92f7d3f823d6eadc3f944516a1))

# [1.4.0](https://github.com/onesoft-sudo/sudobot-dashboard/compare/v1.3.2...v1.4.0) (2024-08-28)


### Features
## [1.4.3](https://github.com/onesoft-sudo/sudobot-dashboard/compare/v1.4.2...v1.4.3) (2024-08-28)


### Bug Fixes

* allow subdomain routing ([4a53827](https://github.com/onesoft-sudo/sudobot-dashboard/commit/4a53827ed887d12fdb8cf81c147ae8247582bca2))
* **verification:** support separate domains ([1a7fff9](https://github.com/onesoft-sudo/sudobot-dashboard/commit/1a7fff9dc885254690bde074a589576488d0dcd1))
* query params are not being rewritten ([c60b994](https://github.com/onesoft-sudo/sudobot-dashboard/commit/c60b99419c26962f41911b98c22fd3c9ff0fe826))



## [1.3.2](https://github.com/onesoft-sudo/sudobot-dashboard/compare/v1.3.1...v1.3.2) (2024-08-28)
## [1.4.2](https://github.com/onesoft-sudo/sudobot-dashboard/compare/v1.4.1...v1.4.2) (2024-08-28)


### Bug Fixes

* contact modal does not show up correctly on mobile ([06a2069](https://github.com/onesoft-sudo/sudobot-dashboard/commit/06a2069619e66feed2294d1734297446ed955a74))
* 400 errors ([3f8cd2f](https://github.com/onesoft-sudo/sudobot-dashboard/commit/3f8cd2f0dc82d4ea889bf640741616151083f423))
* type errors ([9475a29](https://github.com/onesoft-sudo/sudobot-dashboard/commit/9475a2945c7c8186e9136d12243ca14a20f23413))



4 changes: 2 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default withSentryConfig(

// Suppresses source map uploading logs during build
silent: true,
org: "osn-vq",
project: "sudobot",
org: "onesoftnet",
project: "sudobot-dashboard",
},
{
// For all available options, see:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sudobot-dashboard",
"version": "1.4.3",
"version": "1.5.2",
"private": true,
"scripts": {
"dev": "next dev --turbo",
Expand Down
8 changes: 5 additions & 3 deletions src/components/Navigation/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@ const Link: FC<LinkProps> = (
}
}, [pathname]);

const stringHref = String(href);

return (
<NextLink
href={
alwaysUseRootDomain
? `${FRONTEND_DOMAIN?.startsWith("localhost") ? "http://" : "https://"}${FRONTEND_DOMAIN}${href}`
: href
!alwaysUseRootDomain || stringHref.startsWith("http://") || stringHref.startsWith("https://") || stringHref.startsWith("ftp://") || stringHref.startsWith("mailto:")
? href
:`${FRONTEND_DOMAIN?.startsWith("localhost") ? "http://" : "https://"}${FRONTEND_DOMAIN}${href}`
}
ref={ref}
className={clsx(
Expand Down

0 comments on commit 1e6cde3

Please sign in to comment.