H
H
HelpMeeee2021-06-01 14:46:24
Google Apps Script
HelpMeeee, 2021-06-01 14:46:24

Why doesn't google app script redirect work in safari browser?

Good afternoon!
I'm trying to create a redirect using google app script. I don't really understand this, maybe I'm not doing it at all.
In general, I got the following code

function doGet() {
  return HtmlService.createHtmlOutput(
    "<script>window.location.href = 'http://aol.com' + window.location.href.split('#')[1];</script>"
  );
}

function doGet() {
  return HtmlService.createHtmlOutput(
    "<script>window.top.location.href='https://aol.com';</script>"
  );
}


It works but not in safari.
I would really appreciate your help!)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question