fixed notification drawer linking to team/id instead of teams/id

This commit is contained in:
Carter 2025-02-27 14:26:14 -06:00
parent 900b11582b
commit 6dab685c2d
5 changed files with 3 additions and 8 deletions

View file

@ -16,7 +16,6 @@ function App() {
const whiteLabel = getWhitelabel()
const manifestPath = "/" + whiteLabel.name.replace(/\s/g, "") + "/manifest.json"
// const defaultPath = "/AdaptiveAgriculture/manifest.json";
const manifestDocument = document.getElementById('manifest-link') as HTMLLinkElement
fetch(manifestPath).then(response => {

View file

@ -139,7 +139,7 @@ export default function NotificationDrawer(props: Props) {
setNotifications(new Map());
if (!notification.settings?.sourceType) return;
if (!notification.settings?.sourceKey) return;
let url = "/" + notification.settings?.sourceType + "/" + notification.settings?.sourceKey;
let url = "/" + notification.settings?.sourceType + "s/" + notification.settings?.sourceKey;
history(url); //in order to update the history stack add '{ replace: true }' as a second parameter
};