Skip to content

Create new environment button on UI redirects to /None #686

@gvwirth

Description

@gvwirth

Hello,

I'm setting up Teletraan in a containerized environment, and have deploy-board and deploy-service running in containers and, by all accounts, successfully communicating. When I go to click "Create environment" in the UI, I am redirected to "{ base_url }/None". Checking on the template that generates this button, I see that the button's URL is populated by this env var:

TELETRAAN_REDIRECT_CREATE_ENV_PAGE_URL = os.getenv("TELETRAAN_REDIRECT_CREATE_ENV_PAGE_URL", None)

Which is then referenced in the templates here (as an example):

<a href='{{ redirect_create_env_page_url }}' target='_blank' class="deployToolTip btn btn-default btn-block">

Since I do not have this env var set, I am being redirected to /None. Here is a demo: https://ookla.d.pr/i5iDig

I tried setting this env var to a valid URL, but the Create Environment button then acts as a simple link to whatever I set the redirect URL to. At no point am I able to actually create an environment or presented with the correct dialog from the button click action.

Let me know if there is any more detail I can provide about my set up. Thanks!

EDIT:

Update on this -- I discovered that the issue is there is no data-target to the "newEnvModalId" within the template:

<a href='{{ redirect_create_env_page_url }}' target='_blank' class="deployToolTip btn btn-default btn-block">

This should be:

<a href="{{ redirect_create_env_page_url }}" target="_blank" class="deployToolTip btn btn-default btn-block" data-original-title="" title="" data-toggle="modal" data-target="#newEnvModalId">

I'd be happy to submit a PR to fix this if needed. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions