mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-12 17:49:49 -06:00
fix(bug): fixed1296 href link switch (#1317)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
This commit is contained in:
@@ -8,7 +8,7 @@ interface EnvironmentNoticeProps {
|
||||
|
||||
export default async function EnvironmentNotice({ environmentId }: EnvironmentNoticeProps) {
|
||||
const headersList = headers();
|
||||
const currentUrl = headersList.get("x-invoke-path") || "";
|
||||
const currentUrl = headersList.get("referer") || headersList.get("x-invoke-path") || "";
|
||||
const environment = await getEnvironment(environmentId);
|
||||
const environments = await getEnvironments(environment.productId);
|
||||
const otherEnvironmentId = environments.find((e) => e.id !== environment.id)?.id || "";
|
||||
|
||||
Reference in New Issue
Block a user