0

Navigation - setting zul for url

asked 2014-12-04 10:36:45 +0800

JustinFrost gravatar image JustinFrost
139 1 6

updated 2014-12-04 10:37:22 +0800

Hi all,

I have an application which changes an internal include to provide navigation to most of the content. We are using pushstate to set the url manually when we change the contents of the include.

The issue is, some content opens in a new page, so these pages it seems need to actually exist at the given url. Is there anyway to set aliases for given urls for example foo/bar would load content/bar.zul. That way we could keep all of our zul pages in the content directory and not have to create the explicit paths we want to have.

Struts does this for example.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-12-07 09:32:56 +0800

Darksu gravatar image Darksu
1991 1 4

Hello JustinFrost,

You can use the libary UrlRewriteFilter which is very useful for rewriting url's before they are accessed by your code, and can be found at the url:

http://tuckey.org/urlrewrite/

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2014-12-04 10:36:45 +0800

Seen: 52 times

Last updated: Dec 07 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More