Re: [WebDNA] Rewrite url before redirect
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 108080
interpreted = N
texte = > I've got this javascript pulling Facebook information when a user hits =my page.> To keep the script from looping it returns #login at the end on the =url.>=20> I then redirect depending some lookups like so:> [Redirect url=3Dbuy.tpl[url]?cart=3D[cart][/url]]>=20> And get the following in my url bar in some browsers only:> buy.tpl?cart=3D1123452343434#login>=20> Everything works fine in Safari, Chrome, and on iphone but I'm> thinking the "#LOGIN" might be my problem with it not working in> firefox and android. Is it possible to rewrite the url and remove the> tailing "#login" before redirecting?Hi Dave, if I understand.. then:have you tried appending a regular URL param to the URL to serve as the =flag to stop the redirect loop, instead of "#login"?..like append "loginFlag=3DT" instead of "#login".Or if I am missing the point, then maybe post more code so we might be =able to better see what is happening.-Govinda
Associated Messages, from the most recent to the oldest:
> I've got this javascript pulling Facebook information when a user hits =my page.> To keep the script from looping it returns #login at the end on the =url.>=20> I then redirect depending some lookups like so:> [Redirect url=3Dbuy.tpl
[url]?cart=3D
[cart][/url]]>=20> And get the following in my url bar in some browsers only:> buy.tpl?cart=3D1123452343434#login>=20> Everything works fine in Safari, Chrome, and on iphone but I'm> thinking the "#LOGIN" might be my problem with it not working in> firefox and android. Is it possible to rewrite the url and remove the> tailing "#login" before redirecting?Hi Dave, if I understand.. then:have you tried appending a regular URL param to the URL to serve as the =flag to stop the redirect loop, instead of "#login"?..like append "loginFlag=3DT" instead of "#login".Or if I am missing the point, then maybe post more code so we might be =able to better see what is happening.-Govinda
Govinda
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Inventory? (2000)
Running _every_ page through WebCat ? (1997)
Navigator 4.01 (1997)
Faxing orders in place of email (1997)
How To question on setting up downloads (1997)
Searching multiple Databases (1997)
Protect (1997)
Good vs. Bad; also [setHeader] (2002)
Emailer Problem (1999)
creator code (1997)
using listfiles to build a database? more (2000)
[WebDNA] Amazon EC2 (2009)
[WebDNA] Client wants backup copy of site (2010)
Need formum software... (2003)
WebDNA Codes in Secure Mode (1997)
RE: [WebDNA] WebSite Examples (2008)
FW: weird problem (2004)
PCS Frames (1997)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)
Email Not Being Sent (2004)