NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.48k stars 14.4k forks source link

tandoor-recipes: Dynamic URLs don't include `SCRIPT_NAME` #341361

Open l0b0 opened 2 months ago

l0b0 commented 2 months ago

Describe the bug

Moving https://github.com/TandoorRecipes/recipes/issues/3300 here since it won't be fixed upstream.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install tandoor-recipes with extraConfig.SCRIPT_NAME set to a non-empty string and extraConfig.STATIC_URL = "${config.services.tandoor-recipes.extraConfig.SCRIPT_NAME}/static/"
  2. Configure Tandoor
  3. Log into the local Tandoor web site
  4. Click the "+ Create" link in the middle of the page
  5. The browser goes to /new/recipe/ on the current server

Expected behavior

The browser should go to '${config.services.tandoor-recipes.extraConfig.SCRIPT_NAME}/new/recipe/` instead (after substituting the actual value of the script name).

Screenshots

Untitled

Notify maintainers

@ambroisie

Metadata


Add a :+1: reaction to issues you find important.

ambroisie commented 2 months ago

I don't have a fix for this other than you using the package option and overrideAttrs to rebuild the package with your custom sub-folder.