Issue with Unsafe Redirect Error when Creating Menu Item

Hi everyone,

I’m currently working on customizing Open OnDemand by creating a menu item as specified in the documentation. However, I’m encountering an issue with the following error:

#<ActionController::Redirecting::UnsafeRedirectError: Unsafe redirect to "https://openondemand.org/", pass allow_other_host: true to redirect anyway.>

It seems that the application is trying to redirect to a URL that is not considered safe by default. I understand that I need to allow redirects to other hosts by setting the allow_other_host option to true, but I’m not sure where exactly to make this change.

Has anyone else faced this issue? Any guidance on how to resolve this would be greatly appreciated!

Thanks in advance for your help!

I’ve never seen that error before. Can you give us the configuration you’re trying?

This is the manifest.yml that we are using:

---
name: HPC Confluence Documentation

category: Links
description: |-
  Link to the HPC Confluence Documentation

url: 'https://internal.url.to.documentation.com'

new_window: true

tile:
  border_color: "black"
  sub_caption: |
    Link to the
    HPC Confluence Documentation

Do you need anything else about some specific config?

No I think that’s it. I’ll look into it and see if I can replicate.

Thank you. To clarify, the issue began with the upgrade to version 4.0; the same manifest.yml file was working fine in version 3.0.