Skip to content

Commit

Permalink
Merge pull request #4994 from FlowFuse/remove-canonical-link-injection
Browse files Browse the repository at this point in the history
Remove the injected canonical link
  • Loading branch information
ZJvandeWeg authored Jan 8, 2025
2 parents a54c833 + 49edb79 commit c0e2da7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions forge/routes/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ module.exports = async function (app) {
injection += `<script>window.sentryConfig = { dsn: "${telemetry.frontend.sentry.dsn}", production_mode: ${telemetry.frontend.sentry.production_mode ?? true}, version: "flowfuse@${config.version}", environment: "${process.env.SENTRY_ENV ?? (process.env.NODE_ENV ?? 'unknown')}" }</script>`
}

if (config.base_url) {
injection += `<link rel="canonical" href="${config.base_url}" />`
}

// inject into index.html
cachedIndex = data.replace(/<script>\/\*inject-ff-scripts\*\/<\/script>/g, injection)
}
Expand Down

0 comments on commit c0e2da7

Please sign in to comment.