Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

baseUrl when useHtml5Mode = false #139

Open
intportg opened this issue Apr 29, 2015 · 0 comments
Open

baseUrl when useHtml5Mode = false #139

intportg opened this issue Apr 29, 2015 · 0 comments

Comments

@intportg
Copy link

Hi,

I generate my documentation is generated in a subdirectory "/ChangeDocs/" (defined in docular_webapp_target and in baseUrl) and to not have to customize the vhost, I set useHtml5Mode to false.

In this case I can't find a working configuration :

  • with just "/ChangeDocs/" in the baseUrl, the links to scripts and stylesheets are OK but the links to navigate into the documentation are broken : http://[...]/ChangeDocs/#!/documentation/[...]
  • i tried to replace the baseUrl by "/ChangeDocs/index.html#" in order to correctly generate these links but (obviously) in this case the links to scripts and stylesheets are broken...

The only one way I found to fix it is to replace the "base" tag in docular/lib/resources/index.html from :

<base href="{=baseUrl=}">

To :

<base href="{=baseUrl=}{% if !useHtml5Mode %}index.html#{% endif %}">

But I don't know if it may cause any side effect...

Does this fix look good ? And should I make a pull request with it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant