Your problem is that "/#/admin" is not a URL over which Shiro has control.

Shiro is a server-side framework.
Angular.js is a client-side framework.

When you visit a page like "/#/admin", the client's browser will fetch the page 
"/" from the server, and then javascript on that page will notice the "#/admin" 
fragment and render the "/admin" angular view.
During that process, Shiro only gets a request for "/", and any AJAX requests 
that Angular may make during the course of rendering "/admin".

Try searching for https://www.google.co.uk/webhp#q=shiro+and+angular.js , you 
might find some tutorials on how to use the two together.

-----Original Message-----
From: Cosme Benito [mailto:[email protected]]
Sent: 15 June 2016 08:12
To: [email protected]
Subject: Re: Shiro and hashbang URLs

I did try to escape it but it interprets it as a slash #. Angular introduces 
the # symbol itself and I'm unable to change it.

I believe my only way out is to have control the user status in the interface. 
Since all the data comes through REST webservices protected by Shiro it should 
be okay, even if someone manually changes this status it would not be able to 
use the application . I was just wondering if a cleaner solution existed.

On Wed, Jun 15, 2016, 7:58 AM scSynergy [via Shiro User] <
[email protected]> wrote:

> I suspect the problem arises from Shiro interpreting the '#' sign as
> the start of a comment, so you might want to try and escape it '\#'.
> Or maybe you can use some other character instead of the # sign in your URLs?
>
> ------------------------------
> If you reply to this email, your message will be added to the
> discussion
> below:
>
> http://shiro-user.582556.n2.nabble.com/Shiro-and-hashbang-URLs-tp75810
> 66p7581067.html To unsubscribe from Shiro and hashbang URLs, click
> here
> <http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro
> =unsubscribe_by_code&node=7581066&code=Y29zbWUuYmVuaXRvQGdtYWlsLmNvbXw
> 3NTgxMDY2fDQwNjQ1NzkyMw==>
> .
> NAML
> <http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro
> =macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.n
> amespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabb
> le.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21na
> bble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_em
> ail%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Shiro-and-hashbang-URLs-tp7581066p7581068.html
Sent from the Shiro User mailing list archive at Nabble.com.

Richard Bradley
Tel : 020 7485 7500 ext 3230 | Fax : 020 7485 7575

softwire
Sunday Times Best Small Companies - UK top 25 six years running
Web : www.softwire.com<http://www.softwire.com/> | Follow us on Twitter : 
@SoftwireUK<https://twitter.com/SoftwireUK>
Addr : 110 Highgate Studios, 53-79 Highgate Road, London NW5 1TL
Softwire Technology Limited. Registered in England no. 3824658. Registered 
Office : Gallery Court, 28 Arcadia Avenue, Finchley, London. N3 2FG

Reply via email to