lecrackffm Posted June 23, 2017 Share Posted June 23, 2017 Hello everyone, how can i detect if i am coming from the home page of my site. I am trying to make my page ajax driven. The problem is, that the homepage has a different header then all other pages. So in addition to $config->ajax i need to check if the previous page was the home page. Otherwise i am ending up with the wrong header on all other sites. Thank you and have a nice weekend. Link to comment Share on other sites More sharing options...
szabesz Posted June 25, 2017 Share Posted June 25, 2017 Hi, Something like this? https://stackoverflow.com/questions/3124636/detect-ajax-calling-url 2 Link to comment Share on other sites More sharing options...
lecrackffm Posted June 30, 2017 Author Share Posted June 30, 2017 I ended up using a custom request header. Thanks for the link @szabesz Again, thanks to processwire i learned a lot new important stuff about web development in general. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now