<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>


<p dir="auto">"asPath" information should be present in url objects that are passed as<br>
properties to components, as documented in:<br>
<a href="https://github.com/zeit/next.js/blob/master/readme.md#with-link">https://github.com/zeit/next.js/blob/master/readme.md#with-link</a></p>
<blockquote>
<p dir="auto">Each top-level component receives a url property with the following API:</p>
<p dir="auto">...<br>
asPath - String of the actual path (including the query) shows in the browser<br>
...</p>
</blockquote>
<h2 dir="auto">Current Behavior</h2>


<p dir="auto">"asPath" is not present in url objects</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>


<ol dir="auto">
<li>Check out the "url" properties of page components to see that "asPath" is missing</li>
</ol>
<h2 dir="auto">Notes</h2>
<p dir="auto">I'm aware that I can get "asPath" from the router object, but it looks like I should be able to get it from the url object as well.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Want to use Next.js in a mobile webapp, OnsenUI component is very rich. Want to use it with Next.js.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">OnsenUI can't SSR. <code class="notranslate">window is not defined</code> error.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ReferenceError: window is not defined
    at window (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/core/src/ons/styler.js:27:18)
    at /Users/chris/Projects/my-projects/home_seek/frontend/node_modules/core/src/ons/styler.js:26:16
    at onsElements (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/onsenui/js/onsenui.js:4:82)
    at Object.&lt;anonymous&gt; (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/onsenui/js/onsenui.js:7:2)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
    at /Users/chris/Projects/my-projects/home_seek/frontend/node_modules/react-onsenui/dist/react-onsenui.js:4:145
    at Object.&lt;anonymous&gt; (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/react-onsenui/dist/react-onsenui.js:7:2)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)"><pre class="notranslate"><code class="notranslate">ReferenceError: window is not defined
    at window (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/core/src/ons/styler.js:27:18)
    at /Users/chris/Projects/my-projects/home_seek/frontend/node_modules/core/src/ons/styler.js:26:16
    at onsElements (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/onsenui/js/onsenui.js:4:82)
    at Object.&lt;anonymous&gt; (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/onsenui/js/onsenui.js:7:2)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
    at /Users/chris/Projects/my-projects/home_seek/frontend/node_modules/react-onsenui/dist/react-onsenui.js:4:145
    at Object.&lt;anonymous&gt; (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/react-onsenui/dist/react-onsenui.js:7:2)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
</code></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import * as Ons from 'react-onsenui';
export default ({ handleClick }) =&gt; (
  &lt;div&gt;
    &lt;Ons.Page&gt;
      &lt;Ons.Button onClick={handleClick}&gt;Tap me!&lt;/Ons.Button&gt;
    &lt;/Ons.Page&gt;
  &lt;/div&gt;
);"><pre class="notranslate"><code class="notranslate">import * as Ons from 'react-onsenui';
export default ({ handleClick }) =&gt; (
  &lt;div&gt;
    &lt;Ons.Page&gt;
      &lt;Ons.Button onClick={handleClick}&gt;Tap me!&lt;/Ons.Button&gt;
    &lt;/Ons.Page&gt;
  &lt;/div&gt;
);
</code></pre></div>