close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Return to restricted page with anchor ID?

Thread began 5/13/2022 12:52 pm by tony | Last modified 5/16/2022 12:42 pm by Ray Borduin | 111 views | 2 replies |


Return to restricted page with anchor ID?

Hello all,
I have a restricted page (myrestrictedpage.php) with an anchor ID (myanchor) in it.

If the user tries to get to this page without logging first, he will be redirected to the login page (ok).
Once he logs in, he will be redirected to myrestrictedpage.php (ok).

But I would like the user to go to this link: myrestrictedpage.php#myanchor after succesfull login.(KO)

The anchor is not honored and the user is redirected to the top of myrestrictedpage.php.
How can I make the redirect to work the way I need and redirect the user to the anchor?

Sign in to reply to this post

Ray BorduinWebAssist

The issue is that the redirect and storage of the page to go to is saved on the server, and the hash from the anchor is never passed to the server since it is a client-side concept.

There is no easy solution to this. You could do something where the page is allowed to load without content and save the hash with javascript before forwarding it to the checkout page. If you know the page you want the anchor added on and you always want to use the same anchor, then you could hard code it.

This is probably a better topic for a premier support ticket if you need it, since the implementation could be tricky.

Sign in to reply to this post
Did this help? Tips are appreciated...


Thanks for your reply, Ray.
If it could be tricky for you it has to be impossible to do for me ;).
Any way, I solved it just creating a new page and using his url instead of the anchor.
Not so elegant, but it works.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...