python - Get the value of variables passed in the url -


hi using mandrill send few emails system(mandrill designed applications or websites need send transactional email password resets, order confirmations, , welcome messages.) preparing url , attaching emails.when user clicks on link in these emails redirected particular section in web page.

the url have attached : "https://mysite/account/subs/#manage_contacts"

if user logged application,he ll redirected specific url,if not redirected login page site , target variables set redirect him url clicked.

in login page url :

"https://mysite/authenticate/?site=xyz&target=/account/subs/#manage_contacts"

but after login user redirected 'mysite/account/subs/'. leaving out "#manage_contacts".how entire url in target. checked value of target, had mysite/account/subs/

a part of views responsible redirection after successful login :

           site = request.get.get('site', '')         logger.debug('site:' + str(site))         target = request.get.get('target', '')         logger.debug('target:' + str(target))         if site , target:             redirect_url = target         else:             redirect_url = '/authenticate/'         logger.debug('redirect_url:' + str(redirect_url))         return httpresponseredirect(redirect_url)         

the # mark browser display more friendly.

it's not part of http request, can't #manage_contacts through

target = request.get.get('target', '') 

for detail info:

what-is-the-symbol-in-the-url

fragment_identifier


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -