Matthew8A Posted May 26, 2016 Report Share Posted May 26, 2016 I watched a tutorial on how to make a user login and they get redirected to another part of the website and I did everything correctly except to the part where I had to write this code :<script>{window.location = "My website link";}</script>And each time I test it, it would literally print out the code. How do I fix this problem? Quote Link to comment Share on other sites More sharing options...
Mathilda Posted May 26, 2016 Report Share Posted May 26, 2016 Hi, Probably you didn't select "Source" tab before inserting code. You can find info how to insert code in html editor here So you should cut the code->select source tab->paste the code and save changes. Hope it helps. Quote Link to comment Share on other sites More sharing options...
Matthew8A Posted May 27, 2016 Author Report Share Posted May 27, 2016 I'm still having problems with this. The tutorial that I watched that I'm having problems with is here it's on 10:58-12:16. Quote Link to comment Share on other sites More sharing options...
MayMusic Posted May 27, 2016 Report Share Posted May 27, 2016 Edit your HTML DataPage and uncheck "Enable HTML editor" replace the code and finish the page it should help. If not then probably I did not understand the issue elaborate more with an example ... Quote Link to comment Share on other sites More sharing options...
Matthew8A Posted May 28, 2016 Author Report Share Posted May 28, 2016 The way the problem is going with me is that I did what you said, did not work, so now the login screen appears now but when I try to login or other users login it doesn't redirect them to the page that it needs to go. Instead, it stays there and it does nothing at all. I even made two authentications and it still doesn't work that way. Is it the script that's wrong maybe? I don't exactly know but I have been trying to fix this for the last 4 days and it seems to not work. Is there another option similar to this? Also I am using weebly sites to do this. Quote Link to comment Share on other sites More sharing options...
Matthew8A Posted May 28, 2016 Author Report Share Posted May 28, 2016 Wait! Nevermind! IT GOT FIXED Quote Link to comment Share on other sites More sharing options...
Kronos Posted October 20, 2023 Report Share Posted October 20, 2023 Hi, if you want to redirect users if they are using mobile or desktop you may try this solution: I hope this helps! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.