Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
using a # in a URL
Post Body

hey,

using the link and route below when it prints the ID it will only print "PO". why doesn't it like anything past the "#"?

website.com/orders/PO#12345

@app.route('/orders/<id>', methods=['GET', 'POST'])
def POs_getall(id):
  print(id)

I also tried using request.full_path and it produces the same thing.

Comments

This is because the # and everything after it is considered a URI fragment and will not be sent to the server.

You can either use a different character than “# “ for your PO keys, or you can URL encode the “#” on your client to #.

Author
Account Strength
100%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,244
Link Karma
101
Comment Karma
808
Profile updated: 10 hours ago
Advanced

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 months ago