question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

base_url is not used correctly by web_ui

See original GitHub issue

I’m running flexget behind a reverse proxy (using Caddy), with base_url /flexget. After the update to 3.1.0, the web ui is no longer working.

Expected behaviour:

The Web UI should be working

Actual behaviour:

The Web UI shows up blank, the URLs to static resources lack the base_url.

Steps to reproduce:

  • Step 1: Use the config below
  • Step 2: Go to the Web UI and see that the relative URLs are not correct.

Here’s the HTML that got generated:

<!DOCTYPE html>
<html lang="en">
<head>
  <base href="/flexget/">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAEDWlDQ1BJQ0MgUHJvZmlsZQAAOI2NVV1oHFUUPrtzZyMkzlNsNIV0qD8NJQ2TVjShtLp/3d02bpZJNtoi6GT27s6Yyc44M7v9oU9FUHwx6psUxL+3gCAo9Q/bPrQvlQol2tQgKD60+INQ6Ium65k7M5lpurHeZe58853vnnvuuWfvBei5qliWkRQBFpquLRcy4nOHj4g9K5CEh6AXBqFXUR0rXalMAjZPC3e1W99Dwntf2dXd/p+tt0YdFSBxH2Kz5qgLiI8B8KdVy3YBevqRHz/qWh72Yui3MUDEL3q44WPXw3M+fo1pZuQs4tOIBVVTaoiXEI/MxfhGDPsxsNZfoE1q66ro5aJim3XdoLFw72H+n23BaIXzbcOnz5mfPoTvYVz7KzUl5+FRxEuqkp9G/Ajia219thzg25abkRE/BpDc3pqvphHvRFys2weqvp+krbWKIX7nhDbzLOItiM8358pTwdirqpPFnMF2xLc1WvLyOwTAibpbmvHHcvttU57y5+XqNZrLe3lE/Pq8eUj2fXKfOe3pfOjzhJYtB/yll5SDFcSDiH+hR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mOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIj4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CkzCJ1kAAAHESURBVFgJ7ZcxTgMxEEXtTXoQBwDR0yAugDgBHbQ03IEG7RGoaWhB4gwoF0DiBgjOAVn4Jj+atXbHM04CDSMlY+965r/MJGsnhsw+zna77NJap9OH9ygTLiebFpaiGBMkAfy2OGEA0XDyV74pffrJ/VtoLls3H2IQqxm01QpQOJ5cuCAQhxgYc4yBTK4Pttqxm93zLMSd7RD3D39e32Nc00yKd093YX7basuDWgFEIgESwUqV0MTHKlEEgLAFoiQO+KHvhAmgBGERRw5WEmPalAOLRyVAjE+T2rEIwhiW91wDW4SGWPoZcqH0MjGv14gj1twCCsHL7wTmteKIdbUAATS2A3OMabI6ORjXSF/VAplAjr3iiK1qgRTluEZ8rQAE8Xr1UexJVvPYRv6VAFLZj46X+0MNRDUAe542KrFJeSGqACjOFq0C4QaQ4vidh9eXwe3aWgkXQC6enojKmcECYQYYEmcLNKH8Xvd4w7DkTQCaOLPlQjhJ4RqM9+ZXp2ku34oAFnEmpNDQEY4wXEuvAnjEmVCD4Brpi5sRjlGWXU0mxZjwn+d7+a3e/P+fUaoAalJzNOvV0jnp/TmVsZsGoTA1vwAPmT75n9HKuAAAAABJRU5ErkJggg==">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <title>FlexGet Manager</title>
<link href="/assets/vendors~main.635e499d604f09a1ac1c.css" rel="stylesheet"></head>
<body>
  <div id="react" />
<script type="text/javascript" src="/assets/vendors~main.635e499d604f09a1ac1c.js"></script><script type="text/javascript" src="/assets/main.3376f9648be0d4465638.js"></script></body>
</html>

Even though there is a <base> tag and it is set correctly, the static resources all have leading /, which means they are absolute links and do not respect the base tag.

Config:

web_server:
  web_ui: yes
  port: 5050
  base_url: /flexget

Additional information:

  • FlexGet version: 3.1.0
  • Python version: 3.7
  • Installation method: Docker (with image cpoppema/docker-flexget)
  • Using daemon (yes/no): no
  • OS and version: Ubuntu 18.04

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
kristenmillscommented, Jan 7, 2020

It should be fixed in the next release.

1reaction
kristenmillscommented, Jan 7, 2020

Yeah will fix. I probably forgot to remove the slash in front of assets when removing the v2 prefix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration for WebUI base url for use in reverse proxy #5693
The reason the proxying fails for me is because the Web UI is internally sending requests to the host without using the base...
Read more >
[BUG] LibreNMS Web UI: base_url not taken into account - Help
It looks that the base_url setting is not longer taken under account. While accessing the LibreNMS front page, user is redirected to https:// ......
Read more >
You are accessing Bitbucket from a URL that does not match ...
Cause #1. Update the Base URL to be the correct value at Administration >> Server settings >> Base URL . Cause #2.
Read more >
How to get base url in angular 5? - Stack Overflow
If you have a simple application with no routes and you've set the base href to something other than / then you may...
Read more >
Change the base URL for UniFi controller - Ubiquiti Community
So my question is if there is a way of chaning the base URL that the UniFi Web UI uses, so that it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found