Click here to Skip to main content
14,364,639 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have created a static site on Google Sites. Now based on my requirements, I have to restrict the access of this site to particular users. So I have used Sharing and Permissions feature and restricted the access to limited users. It is a page containing some FAQs. Now what I need to do is, based on the question, I directly provide link of my static page, such that particular question part is navigated and shown to user. I have used anchor tag of html and I am using "name" property in this anchor tag. And when I want to show the user particular question on this page, I give the url of the page with "#name" appended in the URL. Now if the user is logged into his Google account, then he is shown that particular portion of the page, but if he is not logged in, google asks him to login and after login, he is not shown that particular part of the page (as used in URL using #name) but is shown the page from top.

For e.g. consider this demo page
https://sites.google.com/site/jmdemosite/home

If I want to navigate to FAQ5, I am using the link
https://sites.google.com/site/jmdemosite/home#t5

If the user is logged into Google account, he is shown FAQ5 directly. But if he is not logged in, he is asked to login and then he is shown the page from top.

I have tried many things using Google App Script and inserting html box (using jquery in it), but Google is not allowing me to redirect to particular part to the page.

Has anyone encountered similar problem and found a solution?
Posted
Updated 29-Oct-15 1:11am
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100