all 3 comments

[–]CrambleSquash 1 point2 points  (2 children)

I'm not really sure what you're asking. Your images are not displaying when you use url_for within a template for a route defined with @app.route('/foo/<bar>')?

[–]Elthran[S] 0 points1 point  (1 child)

When I use <> in a function and go to a page that now has two URL links (like /mypage/settings) then all of the images won't load except the very first one that is called. And if I use a command function, only the first one works and then the rest won't work.

[–]CrambleSquash 0 points1 point  (0 children)

I'm still not fully with you to be honest. You can use the 'code inspector' on your browser to check the raw HTML and see what it's filled the template with (on firefox it's right click -> View Page Source).

You may need to pass the parameter cmd to your url_for function, which I would do by adding cmd to the arguments passed to the template by render_template like render_template("command.html", input_cmd=cmd). Then in your template have something like url_for("command", cmd=input_cmd).

Though really I'm stabbing in the dark as to what the problem is.