Skip to content

Cannot define hostname as base url #5585

@lippoliv

Description

@lippoliv

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

I host InvenTree (currently) on a NAS in my local network. But I cannot define the hostname as a base url, probably because it has no TLD.

(Good news / workaround: I was able to workaround that using the tld "local", so I used "http://some-nas.local" and it worked)

Steps to Reproduce

  1. Go to "Settings" section
  2. Go to "Server settings"
  3. Edit "Base url"
  4. Enter "http://some-nas" (you can combine it with port or not, doesn't matter)
  5. Save

Expected behaviour

Since it is a valid URL, I would expect it to save. But it doesn't. It Complains about invalid value.

image

Deployment Method

  • Docker
  • Bare metal

Version Information

0.12.7

Please verify if you can reproduce this bug on the demo site.

  • I can reproduce this bug on the demo site.

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThis is a question

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions