invoiceninja / ui

Invoice Ninja: Web admin portal built with React
https://app.invoicing.co
Other
52 stars 46 forks source link

[Bugfix] "Purchase License" Button Link #1777

Closed Civolilah closed 1 month ago

Civolilah commented 1 month ago

@beganovich @turbo124 The reason the user experienced this issue (https://github.com/invoiceninja/ui/issues/1746) is because the VITE_WHITELABEL_INVOICE_URL environment variable is not populated. However, the 'Purchase White Label' button in the navigation bar has a fallback to a fixed URL, so when the variable is not populated, the button still has a URL to navigate to.

Now, I have set the newest URL as a fallback value for both buttons. So, even if the environment variable is not populated, the tab will be opened with: https://invoiceninja.invoicing.co/client/subscriptions/O5xe7Rwd7r/purchase.

Let me know your thoughts.