Merged PR 1684: 17169 update portal with document location
Related work items: #17169
This commit is contained in:
@@ -423,8 +423,8 @@ export const createRepPDFBlob = async (
|
||||
? "846040003"
|
||||
: repName.indexOf("_Impact") > 0
|
||||
? "846040029"
|
||||
: repName.indexOf("_Consultation_Response") > 0
|
||||
? "846040005"
|
||||
: repName.indexOf("_Consultation_Response_") > 0
|
||||
? "846040036"
|
||||
: "846040002";
|
||||
|
||||
const tags = {
|
||||
@@ -611,6 +611,10 @@ export const uploadFile = async (formContent, containerName, foldername) => {
|
||||
? "846040003"
|
||||
: files[prop][0].fieldName.indexOf("_Impact_") > 0
|
||||
? "846040001"
|
||||
: files[prop][0].fieldName.indexOf(
|
||||
"_Consultation_Response_"
|
||||
) > 0
|
||||
? "846040036"
|
||||
: "846040000";
|
||||
|
||||
const tags = {
|
||||
@@ -737,6 +741,7 @@ export const uploadSingleFile = async (
|
||||
{ pattern: /_Questionnaire_/, value: "846040001" },
|
||||
{ pattern: /_Comments_/, value: "846040003" },
|
||||
{ pattern: /_Impact_/, value: "846040001" },
|
||||
{ pattern: /_Consultation_Response_/, value: "846040036" },
|
||||
];
|
||||
|
||||
// Find a matching pattern or fallback to default
|
||||
|
||||
+3
-1
@@ -20,7 +20,9 @@ export function middleware(request) {
|
||||
`;
|
||||
frame-ancestors 'none';
|
||||
upgrade-insecure-requests;
|
||||
`;
|
||||
`;
|
||||
|
||||
//const cspHeader = "";
|
||||
|
||||
// csp += `base-uri 'self';`;
|
||||
// csp += `script-src 'self' 'unsafe-eval' 'unsafe-inline' https://ukwest-0.in.applicationinsights.azure.com https://region1.google-analytics.com https://www.google-analytics.com/ https://tagmanager.google.com/ https://www.googletagmanager.com/;`;
|
||||
|
||||
@@ -227,14 +227,15 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
preferredLocale = cookies.pedw_locale;
|
||||
}
|
||||
|
||||
if (preferredLocale !== locale) {
|
||||
return {
|
||||
redirect: {
|
||||
destination: `/${preferredLocale}`,
|
||||
permanent: false,
|
||||
},
|
||||
};
|
||||
}
|
||||
// if (preferredLocale !== locale) {
|
||||
// return {
|
||||
// redirect: {
|
||||
// destination: `/${preferredLocale}/myportal`,
|
||||
// permanent: false,
|
||||
// locale: preferredLocale,
|
||||
// },
|
||||
// };
|
||||
// }
|
||||
|
||||
const showLoginCheck = Boolean(process.env.SHOWLOGIN);
|
||||
const showReps = Boolean(process.env.SHOWREPRESENTATIONS);
|
||||
|
||||
Reference in New Issue
Block a user