In-Page Anchors reload to application's Home page - how do I fix this?

32 views
Skip to first unread message

Carolin Collins

unread,
Apr 6, 2020, 6:50:32 AM4/6/20
to Angular and AngularJS discussion
Hi! I am not an Angular developer but I am involved in a project in an external supplier. 

My job is to place some HTML code with FAQs into a large number of pages and because the content is quite long, we are looking to use in-page anchors as well as accordions help a user move up and down within a page.

It turns out that the in-page anchors don't behave like in a normal HTML page. When clicked, the user is brought to the application's initial landing page. I assume this has something to do with it being a single-page application? Like I said, I am not really familiar with this.

Unfortunately, the relationship with the developers is a little strained due to external circumstances outside of my team and they are working under a lot of time pressure. I was hoping to come to them with a suggested solution in hand rather than asking them to resolve it on their own.

Would anybody be able to give me some advice please, point me in the direction of the way we would need to code this, and is there a solution that is out-of-the-box with Angular or are there extra modules/functionality that needs to be installed/switched on for in-page anchors to work. 

Any response is appreciated. Thank you. 


Sander Elias

unread,
Apr 7, 2020, 5:18:32 AM4/7/20
to Angular and AngularJS discussion
Hi Carolin,

The app must support this in their settings (more or less) if this is taken care of those links works just as they do in HTML. 
They might need to do a little bit of rewriting but nothing major. It should not take half a day.

Regards
Sander

Carolin Collins

unread,
Apr 7, 2020, 3:57:22 PM4/7/20
to ang...@googlegroups.com
Thanks so much for your reply :) Can you point me towards the relevant settings by any chance? 

--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/angular/f8367589-fcd1-4eac-870d-659ece91bebb%40googlegroups.com.

Carolin Collins

unread,
Apr 27, 2020, 5:32:15 AM4/27/20
to Angular and AngularJS discussion
Hi Sander

Can you point me in the direction of these settings please so that I can contact our developers with those? As mentioned, the relationship is not the greatest and anything I can do to highlight that this should be straightforward enough would be incredibly helpful. Thanks so much!

Carolin 

Sander Elias

unread,
Apr 28, 2020, 5:50:29 AM4/28/20
to Angular and AngularJS discussion
Reply all
Reply to author
Forward
0 new messages