留言板

Redirecting to angular directive

thumbnail
Clint Wilde,修改在7 年前。

Redirecting to angular directive

Junior Member 帖子: 39 加入日期: 13-3-5 最近的帖子
Hello,

I have a post login service where I am redirecting to a landing page that will contain an angular2 portlet(it's not there yet), but when the browser refreshes, the last part of the url is being stripped off.

Here is my code:
		String landingPageRedirect = "http://localhost:8080/group/guest/landingmultipleaccounts/#/directiveMultiple";
		lifecycleEvent.getResponse().sendRedirect(landingPageRedirect);


But the url that shows up in the browser is http://localhost:8080/group/guest/landingmultipleaccounts.

So how do I prevent it from stripping off the "/#/directiveMultiple" ?

Thanks,
Clint