Fix - App activation and redirection issue for onprem

This commit is contained in:
lalitdeore
2025-02-10 19:12:32 +05:30
parent 6f9dcbf38e
commit 7187bdd09d
5 changed files with 200 additions and 28 deletions
+2 -2
View File
@@ -417,8 +417,8 @@ const AppGrid = (props) => {
{hits.map((data, index) => {
const appUrl =
isCloud === true ?
`/apps/${data.id}`
: `https://shuffler.io/apps/${data.objectID}`;
`/apps/${data.objectID}`
: `apps/${data.objectID}`;
if (data.name === "" && data.id === "") {
return null
+1 -1
View File
@@ -574,7 +574,7 @@ const AppModal = ({ open, onClose, app, globalUrl, getApps }) => {
{newAppname}
</Typography>
<Link
to={isCloud ? "/apps/" + (app?.id || app?.objectID) : `https://shuffler.io/apps/${app?.objectID || app?.id}`}
to={isCloud ? `/apps/${app?.id || app?.objectID}` : `/apps/${app?.id || app?.published_id || app?.objectID}`}
style={{ textDecoration: "none", color: "#f85a3e", marginTop: "-2px" }}
target="_blank"
rel="noopener noreferrer"
+1 -1
View File
@@ -495,7 +495,7 @@ const SearchData = props => {
})
}
var parsedUrl = isCloud ? `/apps/${hit.objectID}` : `https://shuffler.io/apps/${hit.objectID}`
var parsedUrl = isCloud ? `/apps/${hit.objectID}` : `/apps/${hit.objectID}`
parsedUrl += `?queryID=${hit.__queryID}`
return (